In conclusion, our study suggests a potential role of IL-18 as a partial mediator in the association between MDD and female infertility, particularly in cases with cervical, vaginal, and other or unspecified origin. Here, IL18 is linked to female infertility.