Events such as the Mexican–American War, the French Intervention and the Reform War left the city relatively untouched and it continued to grow, especially during the rule of President Porfirio Díaz. During this time the city developed a modern infrastructure, such as roads, schools, transportation systems and communication systems. However the regime concentrated resources and wealth into the city while the rest of the country languished in poverty.