Lawler has now been banned from teaching indefinitely and can apply to be reinstated after 22 December 2029.

In the hearing he was found to have “authored or co-authored” a series of online newsletters saying Islam was “demonic” and calling sex between two men an “unnatural, unhealthy, disgusting perversion”.

The panel found Lawler had distributed “material which was intolerant of others’ faiths and beliefs”.

In the classroom, the panel found, he had not taken a “child-centric approach”.

Proven allegations included Lawler calling Martin Luther King a “fraud”.

On a separate occasion he told pupils he was “surprised you were not all hanging from lamp-posts” and in another lesson said “back in the day you used to be able to get cocaine purer”.