IntroductionObesity is a disease characterized by the excessive accumulation of fat. Concurrently, thyroid carcinoma (THCA) stands as the foremost endocrine malignancy. Despite the observed escalation in concurrent prevalence of both conditions, the underlying interconnections remain elusive. This indicates the need to identify potential biomarkers to predict the pathways through which obesity and THCA coexist.MethodsThe study employed a variety of methods, including differential gene expression analysis, Weighted Gene Co-expression Network Analysis (WGCNA), and gene enrichment analysis. It was also supplemented with immunohistochemical data from the Human Protein Atlas (HPA), advanced machine learning techniques, and related experiments such as qPCR, to identify important pathways and key genes shared between obesity and THCA.ResultsThrough differential gene expression analysis, WGCNA, and machine learning methods, we identified three biomarkers (IL6R, GZMB, and MSR1) associated with obesity. After validation analysis using THCA-related datasets and biological experiments, we selected Macrophage Scavenger Receptor 1 (MSR1) as a key gene for THCA analysis. The final analysis revealed that MSR1 is closely related to the degree of immune cell infiltration in patients with obesity and THCA, suggesting that this gene may be a potential intervention target for both obesity and THCA.DiscussionOur research indicates that MSR1 may influence the occurrence and development of obesity and THCA by regulating the infiltration level of immune cells. This lays the foundation for future research on targeted therapies based on their shared mechanisms.