Local injection of NPY into the medial prefrontal cortex (mPFC) ameliorated the depression-like behaviors and suppressed the NLRP3 inflammasome signaling pathway. Here, NLRP3 is linked to depressive disorder.