Critically, our identified OSA-MDD hub genes (CD74 and RPL26L1) correlate significantly with immune cell infiltration, while differential infiltration patterns between patients and controls implicate immune-mediated mechanisms in OSA-MDD shared pathogenesis. Here, RPL26L1 is linked to obstructive sleep apnea syndrome.