Mayor Jorge Luis Escandon has suffered not serious injuries.
This is the second time that the farmers attack the mayor; because of the failure to repair the road he promised to restore in his campaign.
Authorities deployed additional security forces in the village of Chiapas.
Local politicians in Mexico are often attacked by drug cartels when they do not turn a blind eye to their crimes, but politicians are rarely attacked for their election promises.
Eskandon said he would file a complaint accusing his assailants of kidnapping and attempted murder.