This is the shocking moment a naked man armed with a bug sprayer was tased by police after slapping a cop at a Houston tram station.

Police were called to Fannin South MetroRail stop in the city's earlier this month to wait for the man who had been behaving erratically on board.

When the tram pulled in and the doors opened, the man attempted to spray the Houston Police Department officers with his bug sprayer.

He then lunged forward, stepping off of the tram, to slap one of them.

Scroll down for video

This is the moment a naked man slapped a Houston Police officer who was trying to get him off one of the city's trams where he had been frightening other passengers with his bug sprayer

Horrified onlookers watched as he made contact with the officer's face. The unidentified man was brought to the ground by the police officers' taser guns.

He writhed and jiggled on the floor as the electric current pulsed through his bod until one of the officer's turned him on to his front.

Once he was calm and on the ground,the officer who he punched asked: 'What's going on man? What do you want?'

The naked man first attempted to spray the officer with the device that he had brought on the tram

The man launched the assault after the police officer grabbed the bug sprayer from him

'What's going on buddy? You've got to talk to me man.'

He then hoisted the man to his feet and walked him out of the station, holding him up by the armpits.

The incident was filmed by a member of the public who shared their video on YouTube.

They commended the officers for handling the situation in a non-violent way.

'No fatalities. This is how cops should handle a situation like this,' they said.

The officer and his colleague tased the man to subdue him on the MetroRail platform