The head of an Alaskan school has been sacked for having himself whipped in front of students.

Steve Unfreid, principal of Matanuska Christian School, says his unusual tactic was inspired by Jesus, reports the Anchorage Daily News.

He asked teacher Joe Brost to whip him in front of two male students in the school's basement after the boys were caught kissing girls in the locker room for the second time in a week.

He had wanted an alternative to expulsion and told the boys: "Guys, this has gotta stop. I've let the atmosphere get too lax. I share in this discipline. This is a one-time deal."

Then the principal took off his belt, gave it to Brost, and instructed the teacher to "discipline me like you would discipline your own son".