Click to email this to a friend (Opens in new window)

Click to share on Twitter (Opens in new window)

Click to share on Facebook (Opens in new window)

Flashing a defiant “rock on” symbol, actor Shia LaBeouf was released from police custody early Thursday after allegedly attacking a man at a livestreamed anti-President Trump protest in Queens.

“We will not be divided!” the volatile 30-year-old proclaimed around 3:45 a.m. outside the 114th Precinct, waving to a handful of supporters.

The “American Honey” star was charged with misdemeanor assault and harassment for the dustup at his art installation outside the Museum of the Moving Image in Astoria. He is due back in court April 7.

LaBeouf was performing his “He Will Not Divide Us” protest when he allegedly ripped the scarf off a 25-year-old man who interfered with the event, scratching the man’s face and pushing him to the ground, police said.

A video taken from the performance showed LaBeouf being collared about 12:30 a.m. The alleged victim, who remained at the scene, did not ask for medical treatment.

In an earlier video, a man was seen approaching LaBeouf and embracing him before strangely shouting, “Hitler did nothing wrong.”

“How are we going to make this s—t OK to be a Nazi out here?” LaBeouf, who shoved the man, said in the video.

LaBeouf has stationed himself outside the museum since Trump’s inauguration as part of a participatory public art project that he and two partners intend to run throughout Trump’s presidency.

Members of the public are invited to join the livestreamed performance.

LaBeouf told the Associated Press this week that the project was not anti-Trump but rather “anti-division.”

“I’m just saying, ‘Be nice to each other,’” he said.

LaBeouf recently wrapped shooting on Janus Metz Pedersen’s “Borg/McEnroe,” a drama chronicling the 1980 Wimbledon final between Bjorn Borg and John McEnroe. LaBeouf plays McEnroe.

He has had previous brushes with the law, including in 2014, when he was arrested at the Broadway musical “Cabaret” and charged with disorderly conduct and trespassing.

Additional reporting by Georgett Roberts