Mice with T2DM combined with OSA exacerbated anxiety via the downregulation of TREM2, causing heightened IFNAR1-STAT1 pathway activation and consequently increasing proinflammatory microglia. Here, TREM2 is linked to type 2 diabetes mellitus.