MEXICO CITY — The election for governor of the key Mexican border state of Baja California Sunday appeared to be locked in a tight race, with both sides claiming victory.

Preliminary results with about 9 percent of the vote counted showed Francisco "Kiko" Vega of the conservative National Action Party with a nearly 4-percent lead, suggesting his coalition might be able to hold onto the governorship his party first won 24 years ago, the first recognized opposition victory in Mexico's recent history.

Vega, who is running in a coalition with the Democratic Revolution Party, claimed victory, saying "as governor, I will do what the people want."

However, also claiming victory was the ruling Institutional Revolutionary Party, which regained Mexico's presidency in 2012 after 12 years out of power. The party, known as the PRI, held the presidency from 1929 to 2000 and was seeking to capitalize on the momentum of its 2012 return to get candidate Fernando Castro Trenti elected in Baja California.

The specter of a National Action defeat had raised doubts about the fate of a national united front, known as the Pact for Mexico, in which all of Mexico's major parties have managed to cooperate to pass important reform bills.

Elections were also held Sunday for state legislators and mayorships in 13 other states. The campaigns have raised fears that violence may be becoming endemic in local Mexican politics.

National Action, which has governed Baja California since 1989, said a series of dirty tricks in that and other state races marked a return to old practices.

Party leader Gustavo Madero suggested he couldn't sit down to negotiate, as he has to date, with the PRI and President Enrique Pena Nieto to enact key national reforms in public education and telecom laws, but still faces hurdles in energy and tax reform.

Election day got off to a rough start for Madero. National Action said he went to his assigned precinct in the northern state of Chihuahua to vote, only to find the gate locked. Madero said the PRI can't act like a modern, reformist force on the national level, while recurring to old-style strong-arm tactics during elections.

"We are seeing two realities. The Pact for Mexico is very civilized, very advanced policy, but on the other hand, when there are elections, it's back to acting like the 1970s or 80s," Madero said, referring to an era when the PRI ruled through vote fraud and handouts.

PRI party leader Cesar Camacho brushed off criticisms, saying the voting in most states appeared to be fair. He alleged that someone voters were being intimidated in Baja California and that someone had thrown a gasoline bomb at the home of a local PRI municipal candidate.

Echoing Pena Nieto's stance that the party aims to be judged purely by its results, Camcho said: "In politics, the whole catalog of excuses doesn't work. In politics, what we want are results, what we need are solid facts, and that is what we will pay attention to."

Baja California faces significant problems of crime, the influx of internal migrants from other states, explosive growth and the pressure of dealing with tens of thousands of migrants deported from the United States each year. While violence in Tijuana has calmed from high levels several years ago, methamphetamine and other drugs have continued flowing to neighboring California after the Sinaloa cartel gained the upper hand in a turf war.

Victor Espinoza, a political analyst at Colegio de la Frontera Norte think tank, said Tijuana - whose mayorship is at stake - presents a huge challenge for anyone who is elected. The influx of deportees and migrants make the city's growth chaotic, and the city's topography of mountains and canyons makes it difficult and expensive to bring roads, sewage and other infrastructure to new neighborhoods.

"It is practically impossible for any government. The demand for services is always greater that the ability to deliver them," Espinoza said.

In the 13 other states where elections are being held, the weeks leading up to Sunday's vote were marked by a spate of shootings and attacks. At least eight politicians running for local posts, or their family members, have been killed. Others have reported being kidnapped or shot at.

On Friday, just two days before the election, a ninth murder claimed the life of a campaign coordinator for the leftist Democratic Revolution Party in the northern state of Zacatecas. Aquiles Gonzalez was found stabbed to death after apparently having been kidnapped. And on Sunday, a young political activist was shot to death in the Gulf coast state of Veracruz. Camacho claimed that the youth was a PRI supporter.

The causes of most of the attacks are still uncertain. Some fear that drug gangs are asserting their power. Others fear that candidates are being targeted by their rivals. But it is clear that people are being attacked for seeking office in areas where organized crime and old-style pols rule.

"There is starting to be violence every time there are elections, especially local elections," said Jose Antonio Crespo, a historian at the Center for Economic Research and Teaching in Mexico City. "There is more violence in local elections, because that is where the drug cartels have more influence than on a national level."

Experts have said in the past that is cheaper, less risky and more effective for the cartels to intimidate or control local government, than try to take on federal-level politicians. Since the gangs are essentially looking to retain local turf - for extortion, drug shipments and sales - intimidating local officials yields tangible results.

"Their thinking is that `we are going to support the candidates who sympathize with us or whom we can negotiate with, and if there is a candidate who might win who won't make a deal with us, we'll tell him not to run or attack them, or even kill them,'" Crespo said.

While violence had marked some local elections in states such as Michoacan and Tamaulipas, "we had not seen it in other states, like we are see it now," said Torres-Ruiz.

___

AP writer Elliot Spagat contributed to this report

Loading Slideshow...
  • Mexico creates jobs

    Our southern neighbor buys more of our products than any country other than Canada. Some 6 million U.S. jobs depend on trade with Mexico, <a href="http://www.wilsoncenter.org/publication/working-together-economic-ties-between-the-united-states-and-mexico" target="_blank">according to the Wilson Center's Mexico Institute</a>.

  • Mexico's economy is growing

    Despite the common conception in the United States that Mexico is a poor country, <a href="http://blogs.independent.co.uk/2012/12/03/as-the-mexican-economy-takes-off-new-president-enrique-pena-nieto-has-a-shot-at-redemption/" target="_blank">Mexico's economy is growing faster than its northern neighbor's</a> -- 3.9 percent compared to 1.7 percent in 2011, according to the UK Independent.

  • Mexico has more professional elections than the United States

    According to Robert A. Pastor, a professor and co-director of the Center for Democracy and Election Management at American University who has observed Mexican elections since 1986, the Mexican system is more professional, non-partisan and independent than the American one.

  • Mexico gave us chocolate

    Along with corn, avocados, chili peppers, tequila and many other awesome foods.

  • Mexico has amazing cultural diversity

    While Mexico may be the largest Spanish-speaking country in the world, that's not the only language spoken in the country. More than <a href="http://www.history.com/topics/mexico/page4" target="_blank">60 indigenous languages are spoken in Mexico</a>.

  • It's the largest Spanish-speaking country in the world

    With a population of 112 million, Mexico is the country with the most Spanish speakers in the world.

  • Mexico City is massive

    If size impresses you, you’ll probably admire Mexico City. <a href="http://www.time.com/time/specials/packages/article/0,28804,2097720_2097772_2097769,00.html" target="_blank">With around 20.5 million inhabitants</a>, it sits among the world’s largest cities. And it’s massiveness has a long history -- when the Spanish arrived in the sixteenth century in Tenochtitlán, the heart of the Aztec empire where Mexico City currently stands, it may <a href="http://books.google.com/books?id=BIQLMYyfHncC&pg=PA23&lpg=PA23&dq=tenochtitlan+larger+than+london&source=bl&ots=tdYDzvdqFE&sig=yNHV_7jhHxdEFlvfb4zzDRFBIzo&hl=en&sa=X&ei=AZinUeD6CeLL0AHSjICADw&ved=0CEgQ6AEwBDgK#v=onepage&q=tenochtitlan%20larger%20than%20london&f=false" target="_blank">have been the largest urban area in the world</a>.

  • Mexico has awesome tourism

    Beaches? Ancient ruins? Mountains? Cultural diversity? Awesome food? Mexico's got it all.

  • It's not as violent as you may think

    As we’ve pointed out before, <a href="http://www.huffingtonpost.com/2012/11/28/13-places-more-violence-mexico_n_2201941.html" target="_blank">Mexico's murder rate isn't particularly high by Latin American standards</a>. Mexico had a murder rate of 23.7 per 100,000 residents in 2011, according to the U.N. Office on Drugs and Crime. That's about equal to Brazil's and roughly half as high as Detroit. Plenty of places in the region have higher murder rates -- including Puerto Rico, the Bahamas, and Jamaica.

  • Mexico has a thriving film industry

    Many Americans are already familiar with crossover successes like Gael García Bernal, Salma Hayek and director Guillermo del Toro. But those stars account for just a <a href="http://www.bbc.co.uk/news/world-radio-and-tv-17112066" target="_blank">small fraction of a booming industry</a>.

  • Home to some of the oldest civilizations of the Americas

    Mexico's first major civilization, the Olmecs, <a href="http://www.history.com/topics/mexico" target="_blank">established themselves by around 1200 BC</a>.