Actor Alec Baldwin has agreed to take anger-management training, as he pleaded guilty in a Manhattan court to a harassment charge for a November confrontation.

The 60-year-old actor was was accused of punching someone over a parking spot.

Baldwin, currently known for his impersonation of US President Donald Trump on NBC's "Saturday Night Live," pleaded guilty to second-degree harassment before a judge ordered him to pay a $120 fine.

He was also ordered to return to court on 27 March to show he had completed the anger-management class.

Baldwin did not speak to reporters before or after the hearing.

Police said that the actor was arrested on 2 November and charged with misdemeanor assault and harassment.

He was released the same day and was met by a swarm of camera crews.

At the time, Baldwin denied striking anyone.

"Normally, I would not comment on something as egregiously misstated as today's story," a post on his foundation's Twitter account said after the incident.

"However, the assertion that I punched anyone over a parking spot is false. I wanted to go on the record stating as much."

Baldwin won an Emmy Award in 2017 for his scathing impressions of Mr Trump.

He is also known for portraying network executive Jack Donaghy in NBC's "30 Rock" sitcom.

Baldwin has a history of losing his temper.

In 2014, he was given a summons for disorderly conduct after an argument with police when he was stopped for riding his bike down a one-way street in New York. It was not clear what followed the summons notice.

In 2011, he was thrown off an American Airlines flight after refusing to stop playing a game on his phone before takeoff.

A year later, Baldwin denied punching a photographer who was trying to take photos of him with his then-fiancee, yoga teacher Hilaria Thomas.

Baldwin and Thomas married in 2012 and have four children.