Splenic immune function was enhanced in diet-induced-obese (DIO) mice caused by Escherichia coli.The changes in spleen function on apoptosis were still unknown. Two hundred mice in groups Lean-E. coli and DIO-E. coli were intranasal instillation of E. coli. And another two hundred mice in groups Lean-PBS and DIO-PBS were given phosphate-buffered saline (PBS). Subsequently, spleen histology was analyzed. Then the rates of spleen cell (SC) apoptosis, and expression of the genes and proteins of Bcl-2, Bax, caspase-3 and caspase-9 were quantified in each group at 0 h (uninfected), 12 h, 24 h, and 72 h postinfection. The SC apoptosis rates of the DIO-E. coli groups were lower than those of the DIO-PBS groups at 12, 24 and 72 h (p < 0.05). Anti-apoptotic Bcl-2 expression gene and protein of the DIO-E. coli groups were higher than those of the DIO-PBS groups (p < 0.05). Gene expressions of pro-apoptotic Bax, caspase-3 and caspase-9 of the DIO-E. coli groups were lower than those of DIO-PBS groups at 12, 24 and 72 h (p < 0.05). The SC apoptosis rates of the Lean-E. coli groups were higher than those of the Lean-PBS groups at 12 h and 24 h (p < 0.05). Interestingly, the SC apoptosis rates in the DIO-E. coli groups were lower than those of the Lean-E. coli groups at 12 h (p < 0.05). In conclusion, our results suggested that the DIO mice presented stronger anti-apoptotic abilities than Lean mice in non-fatal acute pneumonia induced by E. coli infection, which is more conducive to protecting the spleen and improving the immune defense ability of the body.