Justin Bieber is back on the streets.
After a wild night in Miami Beach, the pop star, who was arrested early Thursday for drag racing and DUI, exited the Turner Guilford Knight Correctional Center, wearing a hoodie and waving to fans.
It was the end of a drug and booze-filled escapade that involved fast cars, lots of partying and, ultimately, police.
R&B artist Khalil was also arrested.
It all started with Bieber in a rented yellow Lamborghini and Khalil in a red Ferrari. In an Instagram photo before the incident, Khalil wrote: "Miami nights ridin thru yo city in that hot wheel."
Those hot wheels led to major hot water.
Bieber, 19, was booked at Miami Beach police headquarters on charges of driving under the influence, driving with an expired license and resisting arrest "without violence", according to police records. He was listed as being 5-foot-9 and 140 pounds.
He appeared before a judge for a bond hearing at a little after noon and bail was set at $2,500. His red prison garb meant he was being held in isolation, according to CNN. Khalil's bail was set at $1,000.
The bad boy's entourage had apparently used their cars to block traffic on Pine Tree Drive at 26th Street, according to the Miami Herald, to create a drag strip for the star. The street where Bieber was racing is a palm tree-lined residential area. The star was traveling approximately 55 mph to 60 mph. The speed limit is 30 mph.
When police pulled him over, the Biebz was not happy.
He cursed out the arresting officer then admitted to having beer, pot and prescription drugs in his system, Miami Beach Police Chief Raymond Martinez told the Herald.
According to the arrest affidavit, Bieber smelled of alcohol, repeatedly dropped F-bombs and refused to cooperate with a police officer who had ordered him to put his hands on his car during a cursory patdown.
At a press conference Thursday morning, Miami Beach Police Chief Raymond Martinez said, "At first he was a little belligerent ... using some choice words, questioning why he had been stopped."
In the affidavit, Bieber was described as having "slow deliberate movement and a stupor on his face." When the officer asked Bieber to get out of the vehicle, the pop singer allegedly replied, "Why the (expletive) are you doing this?'"
During the attempted patdown, Bieber kept removing his hands from the car and turning toward the officer, saying at one point, according to the document, "I ain't got no (expletive) weapon. Why do you have to search me?"
At that point, the officer "grabbed his right hand and stated to him that he was under arrest."
The officer said Beiber continued to resist "by pulling his right arm away as he stated, 'What the (expletive) are you doing?'" He said Bieber was finally subdued with the help of a second officer.
Bieber insisted he was not drunk and was coming back from recording music at a studio.
First offense of a drag-racing offense nets a sentence of up to six months, a fine of $500 to $1,000, and a one-year license suspension.
The Opa-locka Police Department is also investigating an unauthorized escort of Bieber, a police spokesman told NBC 6 on Wednesday.
"We know it was an unauthorized detail," Assistant City Manager David Chiverton confirmed to the Herald. "We are trying to determine where the authorization for the officers to escort Mr. Bieber came from, where he was escorted and how many of our officers were involved."
Bieber has been spotted in different places in the Miami area in the past few days, and has been posting videos and photos of himself smoking a cigar, skateboarding at Lil Wayne's Miami Skate Park, seeing the sun rise, and noting all the paparazzi aimed at him on the beach.
E! reports he spent some time with his dad, Jeremy Bieber. And on Monday, the singer and pals hit Mansion nightclub before heading to King of Diamonds strip club.
And this all comes on the heels of his recent egg incident. Earlier this month, Bieber's home was searched after he was thought to have pelted a neighbor's home with eggs. During that search, Lil Za, a member of Bieber's crew, was arrested for cocaine possession.