The Porfiriato () is a term given to the period when General Porfirio Díaz ruled Mexico as president in the late 19th and early 20th centuries, coined by Mexican historian Daniel Cosío Villegas. Seizing power in a coup in 1876, Díaz pursued a policy of "order and progress," inviting foreign investment in Mexico and maintaining social and political order, by force if necessary. There were significant economic, technological, social, and cultural changes during this period. As Díaz approached his 80th birthday in 1910, having been continuously elected since 1884, he still had not put in place a plan for his succession. The fraudulent 1910 elections are usually seen as the end of the Porfiriato. Violence broke out, Díaz was forced to resign and go into exile, and Mexico experienced a decade of regional civil war, the Mexican Revolution. Historians have investigated the era of Díaz's presidency as a cohesive historical period based on political transitions. In particular, this means separating the period of "order and progress" after 1884 from the tumultuous decade of the Mexican Revolution (1910–20) and post-Revolution developments, but increasingly the Porfiriato is seen as laying the basis for post-revolutionary Mexico. Under Díaz, Mexico was able to centralize authority, manage political infighting, tamp down banditry, and shift tendencies of economic nationalism to embrace foreign investment. That major economic shift allowed rapid economic and technological change, an openness to cultural innovation, increasing urbanization, and shifts in societal attitudes of elites. The benefits of economic growth were unevenly distributed and social ills increased, including debt peonage of the peasantry and child labor in new industrial enterprises. The defeat of Mexican conservatives in the War of the Reform and the French intervention in Mexico cleared a path for liberals to implement their vision of Mexico. Díaz, after whom the period is named, was a liberal Mexican army general who had distinguished himself during the War of Reform and the French intervention.