The president of Mexico (1861–72) and a national hero, Benito Juárez fought foreign occupation under the emperor Maximilian and pursued constitutional reforms that helped establish a democratic federal republic, setting the stage for Mexico’s remarkable modernization in the last quarter of the 19th century and freeing it from the most flagrant remnants of neocolonialism.