ABSTRACTMicrobial components have a range of direct effects on the fetal brain. However, little is known about the cellular targets and molecular mechanisms that mediate these effects. Neural progenitor cells (NPCs) control the size and architecture of the brain and understanding the mechanisms regulating NPCs is crucial to understanding brain developmental disorders. We identify ventricular radial glia (vRG), the primary NPC, as the target of bacterial cell wall (BCW) generated during the antibiotic treatment of maternal pneumonia. BCW enhanced proliferative potential of vRGs by shortening the cell cycle and increasing self-renewal. Expanded vRGs propagated to increase neuronal output in all cortical layers. Remarkably, Toll-like receptor 2 (TLR2), which recognizes BCW, localized at the base of primary cilia in vRGs and the BCW-TLR2 interaction suppressed ciliogenesis leading to derepression of Hedgehog (HH) signaling and expansion of vRGs. We also show that TLR6 is an essential partner of TLR2 in this process. Surprisingly, TLR6 alone was required to set the number of cortical neurons under healthy conditions. These findings suggest that an endogenous signal from TLRs suppresses cortical expansion during normal development of the neocortex and that BCW antagonizes that signal through the TLR2/cilia/HH signaling axis changing brain structure and function.