Headmaster Graham Daniels, 51, and chemistry teacher Bethan Thomas, 37, were overhead having sex from outside a closed door.
Headmaster and teacher caught having sex in school, students revenge by posting the sex tape online
A headmaster and a woman teacher were allegedly recorded by a pupil having sex behind the closed door of the head's office.
The camera phone's 'sex tape' was then put online by pupils.
The 30-second tape was recorded on a camera phone outside the headmaster's office and posted onto YouTube.
However, a disciplinary hearing has been launched into the "moans and panting" from behind the closed door in married Mr Daniel's office.
Although the tape has since been deleted from YouTube but both Mr Daniels and Miss Thomas have resigned from 750-pupil Bryntawe Comprehensive School in Swansea, South Wales, after the tape emerged.
The head teacher and another member of staff are currently suspended and Mr Simon Davies, currently Deputy Head Teacher at the school, will be managing the school for the time being.
Mr Daniels and attractive brunette Miss Thomas were said to be "close" and pupils claimed to have seen them at McDonald's restaurant together.
JOIN OUR PULSE COMMUNITY!
Eyewitness? Submit your stories now via social or: