A New York police officer was caught on video this week single-handedly fending off a group of drunken subway vagrants with just his feet and a baton.

According to the New York Daily News, the incident occured on Sunday night, after a woman approached the officer and told him that the men were harassing her.

The officer told the men they needed to leave, after which they “approached him aggressively,” a police source told the paper.

At the start of the video, the officer can be seen holding off the vagrants with his feet and baton. Eventually, one of the men lurches at the officer, who brushes him aside, after which the man stumbles off the platform onto the tracks.

According to the report, the policeman was uninjured in the incident. Backup later arrived and took five men into custody. The men were processed as “intoxicated emotionally disturbed persons” and hospitalized.

In the meantime, the video of the incident went viral and the officer, identified as NYPD officer Syed Ali, was recognized for his conduct during the incident.

“What extraordinary professionalism and bravery by NYPD Officer Syed Ali,” NY Mayor Bill de Blasio later tweeted. “Attacking our men and women in uniform won’t ever be tolerated. The NYPD is upping its presence at this station and others to ensure officers have the support they need.”

City Councilman Chaim Deutsch presented Ali with a certificate and praised him for his "restraint and discipline in how he de-escalated the situation."

According to the New York Times, Ali was initially unaware he had been filmed and had no idea that he had since become a hero on the internet. A fellow officer showed Ali, who does not use social media, the video early Monday morning, and Ali responded with surprise, according to the Times.