The Plan de la Noria was a revolutionary call to arms with the intent of ousting Mexican President Benito Juárez. The plan was drafted by Porfirio Díaz immediately following his defeat by Juárez in the presidential election of 1871. Neither Juárez, Díaz, nor the third candidate Sebastián Lerdo de Tejada won the majority of votes. The vote went to the Mexican Congress which, being full of Juáristas, elected Juárez to his fourth term. Díaz proclaimed himself in revolt and drafted the Plan de la Noria in which he demanded electoral freedom and no re-election. He gained few supporters and was temporarily defeated in Oaxaca, where his brother Felix was killed Benito Juárez died of a heart attack in July 1872 and Chief Justice Sebastián Lerdo succeeded the presidency, as per the stipulation laid forth in the constitution of 1857. Lerdo ran for re-election in 1876 which gave Díaz another chance to revolt, and this time successfully under the Plan de Tuxtepec.