Actor Alec Baldwin pleaded guilty to a charge of second-degree harassment and was ordered to undergo an anger management class in a Wednesday court appearance following a November fight in New York City over a parking spot.

>> Read more trending news

Other charges against Baldwin, 60, were dropped as part of a plea deal, the New York Times reported.

Baldwin, who’s known for his role on “30 Rock” and his portrayal of President Donald Trump on “Saturday Night Live,” was also ordered to pay a $120 fine and to return to court March 27 to verify completion of the anger management course.

Baldwin was arrested Nov. 2 on suspicion that he punched a man, identified as Wojciech Cieszkowski, outside his New York City apartment during an argument about a parking spot. The victim told police Baldwin punched him in the left side of his face and pushed him, according to court documents.

Baldwin admitted to police that he pushed the man, ABC News reported. He has denied through his lawyer and in a tweet that he punched anyone.

This isn't the first time Baldwin has had a run-in with the law. In 2011, Baldwin was removed from an American Airlines flight after crew members said he refused to stop playing a game on his cellphone prior to takeoff. In 2014, Baldwin was arrested on suspicion of disorderly conduct after he was accused of arguing with New York City police officers who said they stopped him for riding his bicycle the wrong direction on a one-way street. That case was eventually dismissed.