Bacterial infections, particularly Salmonella, pose a significant health risk to neonates due to their underdeveloped immune systems. Understanding the immune responses in the neonatal intestine during S. Typhimurium infection is crucial for developing effective therapeutic and prevention strategies. This study found neonatal rats exhibited severe symptoms, including significant mortality, body weight loss, diarrhea, and bacterial load increases in the gastrointestinal tract and various organs, particularly in the ileum. Moreover, neonatal rats exhibited a high percentage of type 3 immune cells including Th17, γδT17, and ILC3 after S. Typhimurium infection. Furthermore, cintirorgon treatment during early life, the agonist of RORγt, significantly enhanced IL-17A-secreting type 3 immune response and alleviated the symptoms. Our data reveal targeting RORγt and IL-17A pathways may offer a promising therapeutic strategy for bacterial infections in neonatal populations.