With the Federal Army defeated in a string of battles, Diaz's government began negotiations with the revolutionaries. One of Madero's representatives in the negotiations was his running mate in the 1910 elections, Francisco Vázquez Gómez. The talks culminated in the 21 May 1911 Treaty of Ciudad Juárez. The signed treaty stated that Díaz would abdicate the presidency along with his vice president Ramón Corral by the end of May 1911, to be replaced by an interim president, Francisco León de la Barra, until elections were held.
Some supporters criticized Madero for displaying weakness in not simply seizing the presidency from Diaz, and for failing to pass immediate reforms; however, by following the electoral process, Madero established a liberal democracy and received support from the United States and popular leaders such as Orozco, Villa, and Zapata. Francisco León de la Barra became interim president of Mexico, pending an election to be held in October 1911. Madero won the election decisively and was inaugurated as president in November 1911.
In response to this lack of action, Zapata promulgated the Plan de Ayala in November 1911, declaring himself in rebellion against Madero. He renewed guerrilla warfare in the state of Morelos. Madero sent the Federal Army to deal with Zapata, unsuccessfully.