The conflict between church and state led to civil war and a French invasion which made an Austrian prince, Maximillian, emperor of the so called Second Empire. He was defeated and executed by Benito Juarez, one of Mexico's great independence heroes who himself was succeeded by Porfirio Diaz, who would rule Mexico for more than 30 years.