Mexico is a federal republic composed of 31 states and the Federal District. Governmental powers are divided constitutionally between executive, legislative, and judicial branches, but, when Mexico was under one-party rule in the 20th century, the president had strong control over the entire system.
https://www.britannica.com/place/Mexico/Government-and-society