Justin Bieber has been ordered to attend a 12-hour anger management course and pay $50,000 (£30,000) to charity after pleading guilty to careless driving and resisting arrest in Miami.
The 20-year-old Baby singer admitted the lesser charges over the incident in January which police initially thought was an illegal drag race between him and R&B singer Khalil Amir Sharieff.
The deal means Bieber, who was driving a rented Lamborghini at the time, avoided a driving under the influence conviction.
He was not present at the hearing but his lawyer Mark Shapiro said Bieber had already given $50,000 to a local children's charity. He was also ordered to pay a £500 fine.
It is not the first time the singer has fallen foul of the law. In July he agreed to pay more than $80,000 (£47,000) for throwing eggs at a neighbour's house in LA.
He is also charged with assaulting a limo driver in Toronto last December and is currently being sued by a Miami photographer who says he was roughed up while taking pictures of the singer outside a recording studio.