Who did Mexico gain freedom from in the Mexican Revolution?

The Mexican Revolution, from 1910 to 1920, fought against the autocratic regime of dictator Porfirio Díaz, who had held the presidency for over 35 years. The Revolution was not an attempt to gain independence from a foreign occupying force, but a conflict driven by significant political, social, and economic issues within Mexico.
Copyright Wanderlust World © https://www.ynyoo.com