Subway riders
Subway riders ejected and threw soup on a man for yelling racist remarks on the train. Riders are pictured on Apr. 21, 2017 in Brooklyn, New York Getty Images

A subway heckler got drenched with soup and tossed out by passengers after he yelled racial slurs during a weekend train ride. A bystander recorded the incident, which went viral Tuesday.

In the video, the man, holding a can of what appears to be alcohol, can be heard spouting the N-word several times amid a crowded subway car in New York City. The self-described grad student went on a rant as riders attempted to talk him down.

"I talk shit because I know I can, because I'm a lawyer. I went to NYU law. F—k you!, " the man exclaimed.

As his tirade continued, he was confronted by passengers who lectured him and eventually pushed him onto the platform when the train doors opened.

He attempted to get back on the train when a crowd blocked his path and that’s when a woman doused him with soup.

"The man apparently first got into an argument with teenagers regarding personal space, and then yelled the N-word as they left the train," Joshua Pyne, who took the video and posted it on his Facebook page, told the New York Daily News.

The woman who held the soup challenged the man, calling him a racist. The man alleged he was a "legal scholar," and that’s when the situation escalated, according to Pyne.

"She immediately stood up and just voiced her outrage," Pyne said. "When she spat at him, he started yelling about his First Amendment rights."

"Understandably, this woman of color and a couple other folks as you can see in the video, call the guy out," Pyne told Gothamist. "This guy starts caterwauling about his 1st Amendment rights and whatnot. The guy didn't seem to be falling-down drunk, but was clearly belligerent."

After passengers tossed the man out of the subway car, he fought to get back on. As he struggled to get back on, passengers can be seen obstructing his path. Two passengers can be seen kicking the man as he tried to get off the ground.

"She and the larger gentlemen in black embraced and there was a good sense that social justice had been served," Pyne added. "We, the handful of folks that had witnessed the entire thing from the start, wished the guy well and hoped he'd have a better weekend, as the woman got off at Lorimer, and was gone before things settled. The whole thing happened really fast."

"I don’t condone the violence, but by the same token, I’m not gonna lose sleep over what happened to this guy," Pyne said. "I think he deserved what he got."