Sepsis-associated encephalopathy (SAE) is associated with an increased rate of morbidity and mortality. It is not understood what the exact mechanism is for the brain dysfunction that occurs in septic patients, but brain inflammation and oxidative stress are a possible theory. Such events can occur through the alteration of molecules that perpetuate the inflammatory response. Thus, it is possible to postulate that CD40 may be involved in this process. The aim of this work is to evaluate the role of CD40-CD40L pathway activation in brain dysfunction associated with sepsis in an animal model. Microglia activation induces the upregulation of CD40-CD40L, both in vitro and in vivo. The inhibition of microglia activation decreases levels of CD40-CD40L in the brain and decreases brain inflammation, oxidative damage and blood brain barrier dysfunction. Despite this, anti-CD40 treatment does not improve mortality in this model. However, it is able to improve long-term cognitive impairment in sepsis survivors. In conclusion, there is a major involvement of the CD40-CD40L signaling pathway in long-term brain dysfunction in an animal model of sepsis.