Alec Baldwin was handcuffed by police Tuesday after he allegedly rode his bike the wrong way on Fifth Avenue and argued with officers who tried to ticket him, NBC 4 New York has learned.

He later tweeted that "New York City is a mismanaged carnival of stupidity that is desperate for revenue and anxious to criminalize behavior once thought benign."

A law enforcement source said Baldwin was seen riding his bike the wrong way near 16th Street in the Flatiron district Tuesday morning and when police stopped to give him a summons, he grew angry.

Baldwin, who was wearing a black jacket, black shorts and a black visor, was not carrying ID, the source said. When police are handing out a summons to someone who has no ID, they bring the person to the police station.

He was issued two summonses, one for riding his bike the wrong way and another for disorderly conduct, an NYPD spokesman said.

Baldwin tweeted that "police did nothing" when photographers nearly hit his daughter with a camera outside his home later in the day.

The "30 Rock" actor, who recently played a journalist on an episode of "Law & Order: Special Victims Unit," has run into trouble on city streets before.

Last year, he used an anti-gay slur in an encounter with a photographer on the street. Weeks later, MSNBC announced it was ending his late night talk show over the episode. In 2012, he tussled with photographers outside the city Marriage Bureau, allegedly grabbing one of them.

In February, Baldwin penned a 5,280-word essay for New York magazine in which he declared he was saying "goodbye to public life" and said he was leaving New York for California.

"I've lived this for 30 years, I'm done with it," he said.