Mexico has 32 federal entities, which includes 31 states and Mexico City as a separate federal entity that is not formally a state.