The increasing concern over environmental pollution caused by the pesticide avermectin used in aquaculture has attracted significant attention. The use of avermectin, a neurotoxic pesticide, in aquatic environments leads to toxic effects on non-target organisms, particularly causing harm to fish. The phenolic compound ferulic acid possesses excellent anti-inflammatory and antioxidant capabilities. This study was conducted by establishing a chronic exposure experiment to avermectin, proposes the use of ferulic acid as a dietary additive to protect the carp brain from damage caused by exposure to avermectin. Furthermore, it investigates the anti-inflammatory and antioxidant effects of ferulic acid in the carp brain under chronic exposure to avermectin. The experimental results demonstrate that ferulic acid can alleviate brain tissue inflammation and oxidative stress by modulating the Nrf2/Keap1 and NF-κB signaling pathways. It protects the carp brain from chronic avermectin-induced damage, preserves the integrity of the carp blood-brain barrier, enhances the levels of feeding factors, and thereby alleviates carp growth inhibition. These findings provide new therapeutic strategies and a theoretical foundation for the sustainable development of carp aquaculture.