In T2D, IL-18 and IL-1RA were positively associated with depression for two scores (IL-18: PHQ-9, WHO-5; IL-1RA: CES-D, WHO-5), hsCRP was associated with one depression score (PHQ-9), and adiponectin showed an inverse association with one depression score (PHQ-9) after adjustment (P = 0.006–0.048). The gene discussed is IL18; the disease is type 2 diabetes mellitus.