JUAN GONZÁLEZ—APUAP APUAPANJUANGONA—APAPReutersA female candidate speaks during a primary election in Mexico’s second-largest state of Michoacan in this October 4, 2015 file photo.
A female candidate and her supporters hold a sign reading “Si vamos tres más” in front of the home of President Enrique Pena Nieto in this May 3, 2017 file photo in Mexico City.
The country’s top court ruled on Tuesday that a state judge’s ruling ordering a woman to leave the presidential race in Mexico should be invalidated.
A lower court had invalidated the ruling in July, ruling that Pena’s ruling violated Mexico’s constitution.
Pena had appealed the ruling to the Constitutional Court.
The court’s ruling on Tuesday also said the president could not cancel the election.
The court’s decision was not immediately available.
Penas ruling sparked outrage in Mexico and prompted him to call on the country’s electoral commission to suspend the election altogether.
Penalties for failing to do so could be up to 20 years in prison.
The ruling on the case was also a setback for Pena, who was widely seen as the front-runner to be Mexico’s next president.