 The terms of his resignation were spelled out in the Treaty of Ciudad Juárez, but it also called for an interim presidency and new elections were to be held.Francisco León de la Barra served as interim president.The Federal Army, although defeated by the northern revolutionaries, was kept intact.