ASTORIA, Queens — A Lyft passenger pummeled his driver in Queens and the entire assault was caught on a dash camera.

Driver Eduardo Madiedo had just one thing on his mind as he was beaten.

“I was just trying to pull over and stop the car, and get them out of my vehicle without hurting someone else or hitting someone else or a pedestrian,” he said.

Madiedo managed to do just that, but not without suffering one final insult and attack.

“I was just looking to make sure he left and I guess he saw me looking and turned around,” he said. “He called me a bunch of racial slurs, a Mexican and go back to my country, and since my window was open, he swung at me again.”

It all happened at the end of a strange ride where he picked up a mother and her adult son to go to Mount Saint Hospital in Queens. The son was clearly in some sort of distress laying on his mother’s lap and moaning.

Madiedo said he was so focused on the road, he missed the red flag of the son pulling off his jacket revealing no shirt underneath. When traffic outside got bad, things inside the car got a lot worse.

“He was being vulgar with me, and cursing at me,” Madiedo said.

Video shows the confrontation start.

“Excuse me man, if you’re going to be disrespectful, I’ll just pull over right now," Madiedo can be heard saying on the video.

He was immediate punched repeatedly by the suspect

Madiedo, who’s been a rideshare driver for three years, got the camera not to try and capture wrongdoing, but to discourage it. Now he is not sure he’ll ever drive for Lyft again.

Lyft said it is cooperating with the NYPD and booted the mother of the suspect off the app.

Submit tips to police by calling Crime Stoppers at 1-800-577-TIPS (8477), visiting http://www.nypdcrimestoppers.com, or texting 274637 (CRIMES) then entering TIP577. Spanish-speaking callers are asked to dial 1-888-57-PISTA (74782).