Berberine ameliorates depression-like behaviors in mice via inhibiting NLRP3 inflammasome-mediated neuroinflammation and preventing neuroplasticity disruption. Here, NLRP3 is linked to depressive symptom measurement.