Objective: Ulcerative colitis (UC) and metabolic dysfunction-associated steatotic liver disease (MASLD) are closely intertwined; however, the precise molecular mechanisms governing their coexistence remain unclear., Methods: We obtained UC (GSE75214) and MASLD (GSE151158) datasets from the Gene Expression Omnibus (GEO) database. Differentially expressed genes (DEGs) were acquired by the 'edgeR' and 'limma' packages of R. We then performed functional enrichment analysis of common DEGs. Hub genes were selected using the cytoHubba plugin and validated using GSE87466 for UC and GSE33814 for MASLD. Immunohistochemistry was employed to validate the hub genes' expression in clinical samples. Immune infiltration and gene set enrichment analyses of the hub genes were performed. Finally, we estimated the Spearman's correlation coefficients for the clinical correlation of the core genes., Results: Within a cohort of 26 differentially regulated genes in both UC and MASLD, pathways involving cytokine-mediated signaling, cell chemotaxis, and leukocyte migration were enriched. After further validation, CXCR4, THY1, CCL20 , and CD2 were identified as the hub genes. Analysis of immune infiltration patterns highlighted an association between elevated pivotal gene expression and M1 macrophage activation. Immunohistochemical staining revealed widespread expression of pivotal genes in UC- and MASLD-affected tissues. Furthermore, significant correlations were observed between the increased expression of hub genes and biochemical markers, such as albumin and prothrombin time., Conclusion: This bioinformatics analysis highlights CXCR4, THY1, CCL20 , and CD2 as crucial genes involved in the co-occurrence of UC and MASLD, providing insights into the underlying mechanisms of these two conditions., Competing Interests: The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest., (Copyright © 2024 Liu, Li, Tian, Lan, Sun, Liu and Dong.)