Bruno Mars has pleaded guilty to possession of cocaine but will not face jail after a judge agreed a plea deal.
The singer was arrested in a bathroom at the Hard Rock Hotel in Las Vegas last September.
During a court appearance on Wednesday (February 16), Mars was given 12 months probation, a fine and 200 hours community service.
The 25-year-old star was also ordered to attend drug counselling sessions.
If the singer avoids trouble then the cocaine charge will be taken from his criminal record.
On Sunday, Mars won Best Male Pop Vocal Performance for 'Just the Way You Are' at the Grammy Awards in Los Angeles.
Bruno Mars - live

Lady Gaga's 'Born This Way' Album Inspired By Nine Inch Nails
Morrissey To Release Two Unheard Songs
Steve Stoute Defends Justin Bieber, Eminem Over Grammy Awards Snub
Wild Beasts Announce New Album 'Smother'
Ne-Yo Set To Collaborate With Bruno Mars?
T In The Park Festival 2011: 25 Must See Acts
Lady Gaga Brings Monster Ball To New York's Madison Square Garden
Warpaint Play London's Shepherds Bush Empire
Register now and have your comments approved automatically!