The maternal system’s exposure to pathogens during pregnancy influences fetal brain development causing a persistent inflammation characterized by elevated pro-inflammatory cytokine levels in offspring. Mycobacterium tuberculosis (Mtb) is a global pathogen that causes tuberculosis, a pandemic responsible for health and economic burdens. Although it is known that maternal infections increase the risk of autism spectrum disorder (ASD), it is not known whether Mtb infection is sufficient to induce ASD associated behaviors, immune dysregulation and altered expression of synaptic regulatory genes. The current study infected pregnant Balb/c mice with Mtb H37Rv and valproic acid (VPA) individually and in combination. Plasma cytokine profiles were measured in offspring using the Bio-plex Th17 pro mouse cytokine panel. Mtb infection increased plasma interleukin (IL)-6 and IL-17A, while tumor necrosis factor alpha (TNF-α), interferon (IFN)-γ and IL-1β were reduced when compared with saline. Mtb-induced maternal immune activation (MIA) offspring displayed increased grooming behavior. The study also revealed dysregulation in gene expression of synaptic molecules in the cerebellum. MIA rescued the VPA-induced effects on self-grooming and social interaction behaviors. Our finding therefore highlights a potential role of Mtb as a MIA agent that can potentially contribute to ASD.