Actor Shia LaBeouf, who starred in the Transformers movies and Nymphomaniac, has been released after being arrested inside New York's Studio 54 during a performance of Cabaret.

Wearing a ripped T-shirt, jeans and boots, the actor was surrounded by media as he walked several blocks to a hotel following a court appearance today. He declined to comment and is due back in court July 24.

The actor was charged with criminal conduct and disorderly conduct, said NYPD detective Brian Sessa.

LaBeouf was escorted out of the theatre by police on Thursday after refusing to go when asked to do so by security guards, said NYPD spokesman George Tsourovakas.

The 28-year-old actor, who gave police a Los Angeles address, began making a disturbance and then used obscene language and became belligerent after security guards asked him to leave, Tsourovakas said.

"He was being rather difficult and combative, verbally ... to the point where security guards asked him to please leave the premises and he refused," Tsourovakas said. "Police were called and he was detained and arrested."

A representative for LaBeouf could not be reached immediately for comment.

With files from The Associated Press