Antibiotics have been used in recent years to treat many pregnancy-related diseases [1] and the risk is also increasing [2]. Newborns of mothers who were treated with and without antibiotics during pregnancy show markedly different growth profiles and there is increasing but controversial evidence that exposure to antibiotics during pregnancy may have short-term and long-term effects on babies. The potential behavioral changes of future generations constitute one of the controversies surrounding this phenomenon.Studies [3][4][5] suggest that maternal exposure to antibiotics modifies the intestinal microbiome, thus causing maternal immune activation, which may lead to abnormal neurodevelopment and behavioral abnormalities in the offspring. Maternal intestinal microecological disorders may disrupt gut-brain axis of fetus in the uterus and play a role in the occurrence of neurodevelopmental disorders [6,7]. However, a population cohort study by Hamad et al. [8] found no direct association between prenatal antibiotic exposure and increased risk of childhood ADHD. Similarly, Atladóttir et al. [9] also did not find that antibiotic use during pregnancy is an important risk factor for autism spectrum disorder (ASD) or infant autism, a disease known to be associated with maternal immune activation. For these reason that effects of antibiotic exposure during pregnancy on offspring neurodevelopment and behavior needs to be further explored.Antibiotics act through the gut microbiome, maintaining normal physiology in the body through their metabolites [10]. It was also confirmed [11] that antibiotics can alter the structure of the gut microbiome and affect the abundance of metabolites, resulting in a therapeutic effect on necrotizing enterocolitis. Yu et al. [12] had found that antibiotic-induced gut microbiome disorders in rats markedly disrupted metabolic pathways related to glycine, serine, and threonine metabolism, niacin and nicotinamide metabolism, and bile acid metabolism. Kimura et al. [13] found that the relative abundance of five metabolites differed between specific-pathogen-free (SPF) mice and germ-free (GF) mice during pregnancy, and the plasma levels of short-chain fatty acids (such as Antibiotic exposure during pregnancy have an adversely effects on offspring behavior and development. However, its mechanism is still poorly understood. To uncover this, we added ceftriaxone sodium to the drinking water of rats during pregnancy and conducted three-chamber sociability test, open-field test, and Morris water maze test in 3-and 6-week-old offspring. The antibiotic group offspring showed lower sociability and spatial learning and memory than control. To determine the role of the gut microbiota and their metabolites in the changes in offspring behavior, fecal samples of 6-week-old offspring rats were sequenced. The composition of dominant gut microbial taxa differed between the control and antibiotic groups. KEGG pathway analysis showed that S24-7 exerted its effects through the metabolic pathways including mineral ...