The man, surnamed Li, was caught red-handed and attacked by the schoolgirl’s parents , who created a scene and persuaded a gang of a dozen people to join in.
The incident in Wei County in Xingtai City, in North China’s Hebei Province, quickly went viral after Li was filmed squatting down near a residential area completely unclothed.
In the short video, Li had reportedly already been beaten and had his clothes torn off, leaving him in pain and covering his private parts with his hands.
Local residents then called police to the scene after Li was paraded around n3ked and called a "rapist" after word of his embarrassing affair with his pupil - thought to be aged between 17 and 18-years-old - got out.
Officers found the teacher with serious injuries all over his body and essentially spared his life from the violent mob justice.
Local authorities took Li to hospital for treatment before detaining him for investigation.