between 1858 and 1861 there was war again, between liberals and conservatives. the liberal benito juárez won the war and became president afterwards. juarez stayed president until france invaded mexico and made maximilian of habsburg emperor of the second mexican empire. but maximilian was very unpopular. after more war he was executed in 1867, and juarez became president again.