In the present study, we found that septic peritonitis induced a significant increase in IL-17A, IL-1β, and TNF-α in brain homogenate, and the enhanced inflammation was strongly associated with the deterioration in cognitive functions and exploratory activity. The gene discussed is IL17A; the disease is septic peritonitis.