UPDATE: New video shows Bieber waving to onlookers as he departs the jail in a black SUV. We also saw on Shepard Smith Reporting a new photo from TMZ showing Bieber partying at a Miami night club in the wee hours of Thursday morning.

UPDATE: Justin Bieber left jail in a black Escalade this afternoon after appearing before a judge and posting a bail of $2,500 following his early morning arrest.

Bieber is accused of driving while under the influence of alcohol, pot and prescription pills, as well as illegal street racing.

See the photo of Bieber leaving jail below:

UPDATE: Bieber appeared before a judge at 1p ET. His bail was set at $2,500. (Watch the video of the hearing)

The legal troubles continue for pop star Justin Bieber after he was arrested early Thursday morning on charges of driving while under the influence and illegal street racing.

Police in Miami Beach say Bieber, 19, was stopped just after 4 p.m. EST when an officer observed him in a rented yellow Lamborghini appearing to be drag racing a red Ferrari.

PHOTO: See Justin Bieber's Mug Shot!

Drug Arrest Made at Justin Bieber’s House

The 19-year-old pop star failed a field sobriety test and was found to be under the influence of alcohol, marijuana and prescription narcotics. He is also charged with resisting arrest without violence and driving with an expired license.

Authorities say Bieber admitted to drinking, smoking marijuana and taking pills.

Flavor Flav Arrested For Speeding to Mother's Funeral

The driver of the Ferrari, a friend of Bieber identified as R&B singer Khalil Sharief, was also arrested on DUI charges.

This is the latest in a string of brushes with the law for Bieber. In June 2013, he was sued by a paparazzo for assault. In October, prosecutors declined to charge him for reckless driving after a neighbor complained. In November, he was charged for graffiti in Rio de Janeiro.

Bieber has made headlines recently after a neighbor in California accused him of throwing eggs at his home and causing $20,000 in damage. As part of that incident, cops arrested a friend of Bieber's at his home on drug possession charges.

It was just three days ago that Bieber posted a photo to Instagram of himself shirtless in a Miami strip club, where he claims he spent $75,000 in singles.