We exploit time and spatial variation generated by the commodities boom to measure the effect of natural resources on human capital formation in Peru, a country with low governance indicators. Combining test scores from over two million students and district-level administrative data on mining...