The leaders of the junta became uneasy after President Comonfort announced he was assuming extraordinary powers for himself. On 11 January 1858, General Zuloaga demanded the president's resignation (although Comonfort and Zuloaga had been friends). Comonfort resisted for ten days. During that time he freed Juárez and the other liberals who had been jailed. Upon Comonfort's ouster, Juárez assumed the presidency in accordance with the constitution, but Zuloaga was in military command of the capital, and Juárez had to establish his government in Guanajuato. This was the beginning of the War of the Reform. Comonfort left the country, repudiated by all parties.