The bizarre incident took place in Madha Habibpur village of Aligarh Tuesday when the panchayat after coming to know of an attempted rape by a village boy read out the punishment.
The matter was later referred to the police by the distraught father of the victim on whom the rape attempt was made and the police lodged a first information report (FIR) against the assailant.
Police said the assailant sexually assaulted the young girl after barging into her house late Monday.
When the matter came to the notice of the village Panchayat, they held a meeting and decided "not to take the matter further" for fear of bringing bad name to the village.
They asked the family of the girl to hit the assailant five times with shoes and let him go. While the family surrendered to the wishes of the village panchayat then, they later lodged a complaint with the police.
"A case has been registered against the accused and we are trying to arrest him," a police officials said while informing that law will take its own course in the matter and the panchayat decision was illegal.
Kareena Kapoor Khan looks in fab shape after weight loss! See photos
Mumbai food: 9 dishes to try during 9 days of Navratri
Photos: Hrithik Roshan, Nidhhi Agerwal and Adah Sharma walk the ramp
Photos: Shah Rukh Khan spotted with new set of wheels
Photos: Kareena Kapoor Khan, Kangana Ranaut at the Mumbai airport