Clove is a kind of food spice, which can be used as food flavoring additive. In this work, we looked at clove's impact and underlying mechanism on cognitive impairment in infected mice. By using the open field test, Morris water maze, ELISA technique, kit method, and qPCR method, the biochemical and molecular biological indices of mice were identified. Clove component composition was established using HPLC. The findings demonstrated that clove might enhance mouse survival rates in comparison to the model group and could also lengthen driving distances, standing and combing periods, target quadrant duration, and crossing periods. In the hippocampus of infected mice, clove can lower levels of TNF-α, IL-6, IL-1β, and MDA while increasing SOD and CAT activity. In the hippocampus of infected animals, clove additionally increased the mRNA expression of SIRT1 and FOXO1 and decreased the mRNA expression of NF-B and p53. Animal studies revealed that clove's impact was comparable to dexamethasone in that it might help septic mice with cognitive impairment. The analysis revealed that rutin, isoquercitrin, ferulic acid, dihydroquercetin, and quercitrin were all present in clove. It is clear that clove can help septic mice with cognitive impairment by triggering SIRT1 through its active components.