When treating depression as a binary outcome, serum magnesium was associated with ORs of depression in individuals with CRP levels ≥ 5 mg/L, but not in those with CRP levels < 5 mg/L. This evidence concerns the gene CRP and major depressive disorder.