In summary, PF mitigates LPS-induced depression through NLRP3 suppression and Nrf2/HO-1 activation, offering a promising therapeutic strategy for inflammation-related depression-like behavior in mice. Here, NFE2L2 is linked to inflammatory response.