In our study, XCHT was proven to alleviate depressive disorders by downregulation of IL‐1β, TNF‐α, and IL‐6 inflammasome, modulating the immune system by inhibiting Iba‐1 and GFAP overexpression, making it a promising candidate for the treatment of depression. The gene discussed is AIF1; the disease is major depressive disorder.