A City of Toronto solid waste worker has lost his job after filming himself insulting police officers while they ticketed him for using an accessible parking spot.

"We do not speak to personnel matters. I can advise however the employee is no longer employed by the City of Toronto," spokesperson Wynna Brown wrote to CBC News in an email.

In the profanity-laden video, which appeared online in August, the man identifies himself as a City of Toronto employee and accuses officers of racial profiling.

"You thought I was just a regular f--king n--ger, eh?" the former municipal employee says to the officers, complaining about how they blocked his vehicle instead of "just writing the ticket and f--king off."

'I was racially profiled by another black dude,' man says in video posted online after being ticketed for parking in accessibility spot. 'Are you serious?' 0:57

Later in the video the man can be heard admitting to parking in an accessible parking spot outside of a supermarket in the Don Valley Parkway and Lawrence Avenue East area.

"Buddy, I bought a lotto ticket and I was leaving," he says to the officers. "I was literally like 45 seconds."

The video, which runs more than 11 minutes in length and is titled "This is why things will never change, I was racially profiled by another black man", was uploaded to the website Vid.Me on Aug. 10.