 As interim president, Méndez called elections, which Díaz won.Méndez's term ended on 17 February 1877 with the return of Díaz to the presidency.Méndez entered the Senate in 1877, where he worked to end the military draft.