An Indian man took revenge against a 17-year-old boy who raped his 7-month-old baby daughter — by tying him to a tree and chopping off his hands.

In court, the father said he was willing to forgive the teen and accept cash as compensation — even offering to drive the perv home to Kotli Ablu, a village in Punjab where they both live, the Mirror of the UK reported.

But halfway through the trip, the father stopped the bike, tied the rapist to a tree, and hacked off his mitts with a machete.

The father then fled, leaving the teen screaming for help before being found by locals.

The teen was hospitalized in critical condition, and cops are still looking for the father.