A fresh wave of violence is sweeping through Mexico as the country prepares to choose its new president on July 1.

An explosion of political assassinations in Mexico has cast a pall over nationwide elections slated for July 1, when voters will choose their next president and fill a slew of down-ballot posts.

At least 82 candidates and office holders have been killed since the electoral season kicked off in September, making this the bloodiest presidential race in recent history, according to a tally by Etellekt, a security consultancy based in Mexico City, and Reuters research.

Four were slain in the past week alone. They include Juan Carlos Andrade Magana, who was running for re-election as mayor of the hamlet of Jilotlan de los Dolores, located in Mexico’s western Jalisco state. His bullet-ridden body was discovered Sunday morning inside his Toyota Prius on the edge of town; Andrade had just attended a funeral. State prosecutors are investigating, but have made no arrests.

The victims hail from a variety of political parties, large and small, and most were running for local offices far removed from the national spotlight. The vast majority were shot. Most cases remain unsolved, the killers’ motives unclear.

But security experts suspect drug gangs are driving much of the bloodshed. With a record of about 3,400 mostly local offices up for grabs in July, Mexico’s warring cartels appear to be jostling for influence in city halls nationwide, according to Vicente Sanchez, a professor of public administration at the Colegio de la Frontera Norte in Tijuana.

He said crime bosses are looking to install friendly lawmakers, eliminate those of rivals and scare off would-be reformers who might be bad for business. Local governments are a lucrative source of contracts and kickbacks, while their police forces can be pressed into service of the cartels.

“Criminal gangs want to be sure that in the next government, they can maintain their power networks, which is why they are increasing attacks,” Sanchez said.

Electoral authorities have warned that the bloodshed could affect voter turnout in some areas. The killing spree has stunned even veteran observers who see it as an assault on Mexico’s democracy and the rule of law.

“State and local authorities are outgunned and outmaneuvered and the federal forces cannot be everywhere,” said Duncan Wood, director of the Mexico Institute at the Woodrow Wilson International Center for Scholars in Washington. “There is an urgent need...to provide greater protection and insulation against organized crime.”