A shocking footage has emerged online as a mayor in a village in southern Mexico was beaten to the pulp by his constituents over failed campaign promises.

The angry mob were seen dragging the mayor out of his office and then tied to a pickup truck and dragged through the streets of the town.

The group which was mainly made up of farmers were demanding the mayor build a road he promised to construct during his campaign, Mexican news outlet Excelsior reported.

A statement from the office of the country's Attorney General said the incident happened early Tuesday in the town of Las Margaritas, when a group of people stormed Mayor Jorge Luis Escandón Hernández’s office and caused damage to real estate, in addition to assaulting him.

The statement added that eleven people have been arrested so far.

Video taken by bystanders outside the building showed the men pulling the mayor out of the building and forcing him into the back of a truck.

Another surveillance video captured the moment the mayor was dragged along from the back of the struck through the streets of Santa Rita, in Las Margaritas.

State police were eventually able to rescue the mayor, according to Excelsior newspaper.

The incident caused a brawl between the locals and the police, leaving at least 20 injured and 11 arrested, La Republica reported.

The State Attorney General’s Office said in a news release that Hernández is “safe and sound” and that he was examined by doctors after the incident.

Watch video below: