MEXICO CITY — A major political party in Mexico has chosen a female presidential candidate for the first time, as the ruling party bet that a charismatic former congresswoman will help it erode the lead held by its powerful rival.

After easily winning the National Action Party's primary Sunday night, Josefina Vazquez Mota vowed to unite a party battered by a bloody drug war and help it defeat the Institutional Revolutionary Party, which ruled Mexico for 71 years before being ousted by National Action in 2000.

"I will be the first woman president of Mexico in history," Vazquez Mota, 51, told cheering supporters.

The party's vote for Vazquez Mota over two other candidates sets the race for Mexico's July 1 presidential election. The two other major parties had already selected their candidates.

Reuters reported that Vazquez Mota's victory over Cordero is an upset for the party bosses who often have the final say in choosing candidates.

The leftist Democratic Revolution Party chose Andres Manuel Lopez Obrador, who is making his second run after a razor-thin loss in 2006 to President Felipe Calderon. Mexico limits its presidents to a single six-year term.

'We begin a new road'
The personable, cheerful Vazquez Mota invited party members to help her beat the telegenic and handsome Pena Nieto, who is married to a glamorous telenovela star.

"We begin a new road," said Vazquez Mota. "A road to defeat the real adversary of Mexico, who embodies authoritarianism and the worst antidemocratic practices; who represents the way back to corruption and offers impunity as a conviction. The adversary is Pena Nieto and his party."

Vazquez Mota is considered the PRI's strongest challenger, though Mexican voters seem weary of the ruling National Action Party which has governed for 11 years. Delegates are betting that a woman candidate could boost party appeal.

"It injects a certain new note of uncertainty. There's never been a strong female presidential candidate for any other major party before," said Eric Olson, a senior associate at the Woodrow Wilson Center's Mexico Institute. "It adds that historical element and maybe some excitement."

Others argue that the party, known as the PAN, is tainted by a crackdown on drug cartels that has seen violence soar, stalled reforms and corruption.

"Josefina arrives with a weakened party," said Soledad Loaeza, a political science professor in Colegio de Mexico who has studied the evolution of the PAN. "The electorate is not willing to see her as an alternative."

She was not Calderon's choice to compete for the party, though he appointed her education secretary after she served as his campaign manager in 2006. The party establishment had supported former Finance Secretary Ernesto Cordero.

But the party's rank-and-file membership handed her a victory from the polls. Her two opponents showed their support after the results were announced. More than 400,000 people voted in the primary.

Calderon was not the choice of his predecessor, Vicente Fox, whose election in 2000 booted the PRI out of office after 71 years of single-party rule.

The fact that Calderon still won the party nomination and went on to surprise everyone and defeat Lopez Obrador provides a template for Vazquez Mota to pull an upset, even though she now trails Pena Nieto by nearly 20 points in the polls.

Cordero obtained 38 votes, and the third candidate Santiago Creel, a former senator who also ran in the 2006 primaries against Calderon, got 6 percent of the votes.

Women have run for president in Mexico before, but not representing any of the three major parties.

The PAN's choice of Vazquez Mota may have been the wisest, according to political analysts.

"A PRI victory is still the most likely outcome, but it's almost inevitable the race will tighten," said Pamela Starr, a professor at the University of Southern California who writes on Mexican politics. "It will be an interesting campaign, regardless."