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. This evidence concerns the gene TNF and septic peritonitis.