Police have launched an investigation of a Miami Beach officer shown in a viral video cursing at another man during a traffic stop, reported the Miami Herald.

The video clip, posted Monday on YouTube, shows Officer Kenneth MacLeod ending his encounter with Albert Valdes, who said he was stopped and ticketed for having the license plate obscured on his motorcycle.

ADVERTISEMENT

“Get out of my face before I decide that this might be not the best judgment,” the officer says on the video, and Valdes tells him to “have a great day, too.”

“Trust me, I will,” MacLeod says.

“God bless you,” Valdes replies, and the officer’s demeanor changes.

“You know what? F*ck it, let’s throw your ass in jail,” MacLeod says. “You want to be a sarcastic bitch, I’ll be f*cking a bigger bitch.”

The video shows the two men standing face to face, just a few inches apart.

“You’re f*cking with the wrong dude, bro,” MacLeod warns. “I’ve been here longer than you’ve f*cking been alive. I put up with more sh*t than you can even think of, so if you want to test me again you’ll be finding Dade County Jail real f*cking hunky-dory tonight. Which part do you want to f*cking play? Which part do you want to play, sir?”

ADVERTISEMENT

Valdes tells the officer he would like to go to work.

“Then don’t be a f*cking little wise-ass 20-year-old punk,” the officer says, pointing to his badge. “MacLeod’s the name, M-A-C-L-E-O-D — Scottish spelling. It’s also on the bottom of your tickets if you don’t like it.”

McLeod was shot while in uniform more than 20 years ago during a gunfight, the newspaper reported, on the same day another officer was killed during an ambush by bank robbers.

ADVERTISEMENT

MacLeod was working off-duty in uniform Jan. 4, 1992, when he offered to help a man walking a motorcycle.

The man opened fire, and the officer required hours of surgery.

ADVERTISEMENT

Police opened an internal affairs investigation into the incident involving Valdes after seeing the video online.

They said Valdes had not filed a complaint, but the investigation was opened to be “proactive.”

Watch video of the incident posted online by Albert Valdes: