This study offers new evidence on the relationship between AIP levels and depression in middle-aged and older adults with varying glucose metabolic statuses. This evidence concerns the gene AIP and depressive disorder.