sentences:  Díaz had ousted president Sebastián Lerdo de Tejada in the Revolution of Tuxtepec (1876).The U.S. did not recognize the Díaz government until 1878, when Rutherford B. Hayes was president.Given that France had invaded Mexico in 1862, Mexico did not initially restore diplomatic relations with it or other European powers, but did pursue a "special relationship" with the United States.