This was one “L” of a ride.

A belligerent drunk​en​ man ​berated fellow straphangers and ​screamed racial slurs on a​​ ​subway train this weekend until a group of angry commuters ​decided they’d had enough — pushing him out the door when the train made a stop and even tossing soup ​at him, a video captured by a rider shows.

The ​white ​man, who was openly drinking a can of Lime​​-A-Rita on the L train as it barreled through the tunnel toward Brooklyn just before 2 p.m. Saturday, was already in the middle of a fit when ​rider Joshua Pyne turned a camera on him and caught him yelling about his ​First ​A​mendment rights​. He repeatedly ​uttered the N-word.

“I talk s–t because I know I can,” the drunk ​shouted. “I’m a lawyer. I went to NYU Law.”

Before Pyne started up his camera, the man got into a ​spat with a group of black teenagers at ​the ​1st Avenue​ stop​, he said. Once they got off the train, ​the drunk referred to them as “stupid n—–s,” which prompted one woman to spit on him and a guy to try to get him to stop yelling.

But that’s when the jerk doubled down and kept screaming.

A ​racially ​diverse group of riders on the car tried to get him to calm down and quit yelling, but he repeatedly refused. As the train pulled into Bedford Avenue, some of the riders stood between the man and his shopping bag, which he had left on a seat.

He told them they couldn’t take his property, but they continued to hold him back.

“F–k your bag, dude,” one guy told him.

The crowd then shoved him out the door onto the platform. A man kicked him several times and the woman who spat on him threw soup at him, which landed all over his arm.

The end of the incident wasn’t caught on video, but Pyne says a cop walked up and the drunk man started arguing with him while the train continued on its way. The man never got his bag back.

“Everyone on the car felt pretty demoralized,” said Pyne.