Updated

Authorities say relatives of Lenin Carballido used a death certificate showing that he died of a diabetic coma in 2010 to convince police to drop an arrest warrant against him for allegedly participating in a 2004 gang rape.

A living Carballido later ran in, and narrowly won, Sunday's election in San Agustin Amatengo in Oaxaca state. In this campaign, he posted photos of himself all around the village of 1,400 residents, with slogans like "A Real Change" and "United for Development."

But shortly after his victory, the death certificate surfaced with his full name of Leninguer Carballido.

Officials in Oaxaca said Thursday that the certificate had been drawn up and signed by a public registry official, but that the information had been faked.

Carballido's party, the leftist Democratic Revolution Party, known as the PRD, said it had been fooled by the candidate.

"When he registered as a candidate, he presented all his paperwork, his birth certificate, a letter stating he had no criminal record," said Rey Morales, the state leader of the PRD.  "He fooled the prosecutors' office, he fooled the office of records, he fooled electoral officials."

"If all this is true, he cannot take office as mayor," said Morales.

Haydee Reyes Soto, the director of the Oaxaca public records office, said the registry official who drew up the fake death certificate used a real official  form, signed it and stamped it with an official seal, and even listed it under a file number used to record a real death.

"The form is real, what is false is the information," Reyes Soto said, adding "the decision has already been made to fire" the official, Abel de la Rosa Santos, who is also being questioned by prosecutors.

According to records, a woman accused of Carballido and four other men of having raped her in Oaxaca city in 2004.

Mayra Ricardez, spokeswoman for the Oaxaca state prosecutors' office, said the arrest warrant against Carballido "was never served, because his family showed officers a false death certificate."

Ricardez said the statute of limitations had not run out on the crime.

"The prosecutors' office is taking all the legal steps necessary to revive the case, and serve the arrest warrant that is still pending," she said.

It seems unlikely that Carballido will be able to take office in San Agustin Amatengo, an impoverished village near the city of Oaxaca where many residents left in the 2000s to seek work in the United States and elsewhere.

Carballido didn't answer his cellphone Thursday.

One San Agustin Amatengo official, who said he could not speak on the record about a criminal case, said residents hadn't been aware of the candidate's past; the rape did not take place in the village.

"All of this came out after the elections were over," the official said.

It's not the first time that embarrassing candidates have been elected in Mexico.

In 2009, a PRD candidate went fugitive after winning a seat in Mexico's Congress, when tapes surfaced of a conversation between him and a drug lord. And congressional candidates have often been caught running for seats in districts where they don't really live.