High IL-1β (P=0.011, adjusted P=0.044), IL-6 (P=0.010, adjusted P=0.040), and IL-17 (P=0.011, P=0.044 after adjustment), but not TNF-α (P=0.104, P=0.416 after adjustment), were associated with depression occurrence. Here, IL17A is linked to major depressive disorder.