The French Revolution substantially impacted primary schools as it suppressed one of their major funding sources, taxes collected by the clergy. Nonetheless, the geographical distribution of schools and enrollment rates remained relatively stable until late into the nineteenth century. In this article, I show that understanding the reorganization of primary schooling after the Revolution is essential in accounting for these long-lasting variations. By using data at the level of schools and an IV strategy relying on the trade cost shock caused by the Napoleonic blockade, I first show that municipalities took over the control of instruction in richer and growing areas. Secondly, I demonstrate that, by subsidizing schools, municipal authorities contributed to lower schooling fees and to increase enrollment. Finally, I show that human capital accumulation was higher in the schools provided with public grants, which influenced positively the subsequent development of municipalities. Public investment in education is therefore a key determinant of knowledge accumulation in nineteenth-century France.