Justin Bieber must pay 80,900 dollars (£47,000) in damages and serve two years on probation for throwing eggs at a neighbour's home.
The singer pleaded no contest to a misdemeanor vandalism charge over the incident.
Bieber also was ordered to complete five days of community labour and a 12-week anger management programme, and to stay away from the victim and his family for two years.
The 20-year-old Grammy-nominated singer was not present for the hearing in California. His lawyer, Shawn Holley, entered the plea on his behalf.
A spokeswoman for Bieber said he is glad to have the matter resolved and behind him.
Prosecutors spent months deciding whether to file charges after the January incident. They considered felony charges because the damage was said to be more than 400 dollars (£230), the threshold for a felony.
Deputy District Attorney Alan Yochelson said he was satisfied with the misdemeanor charge and called egg throwing an "extremely immature and a silly act".
The singer's mansion was searched on January 14, and detectives later filed a search warrant to obtain images from Bieber's Instagram account to match them to surveillance footage taken from his home.
A detective wrote that a person matching Bieber's description was seen high-fiving his friends after running toward a neighbour's home, but footage of the egg attack was not captured.
Bieber was not arrested during the search of his home, but his friend and personal manager Xavier Domonique Smith was charged with felony drug possession.
Smith, an aspiring rapper who goes by the name Lil Za, pleaded no contest to felony possession of Ecstasy and was sentenced to probation and a drug treatment programme.
Bieber faces two other cases in Florida and Toronto. A Miami court has set a trial date this month for his driving under the influence case, which also includes charges that he resisted arrest without violence and was driving with an expired license.
A preliminary toxicology report showed that the singer tested positive for marijuana and the anti-anxiety drug Xanax after his arrest.
The singer turned himself in to Toronto authorities on January 29 on a charge that he assaulted a limo driver in late December.
Bieber gained stardom with his debut album aged 15 and his career has been guided by a pair of music industry heavyweights, singer Usher and manager Scooter Braun.
He was nominated for two Grammy Awards for his 2010 full-length album debut My World 2.0, but his popularity has waned.
Why are you making commenting on The Herald only available to subscribers?
It should have been a safe space for informed debate, somewhere for readers to discuss issues around the biggest stories of the day, but all too often the below the line comments on most websites have become bogged down by off-topic discussions and abuse.
heraldscotland.com is tackling this problem by allowing only subscribers to comment.
We are doing this to improve the experience for our loyal readers and we believe it will reduce the ability of trolls and troublemakers, who occasionally find their way onto our site, to abuse our journalists and readers. We also hope it will help the comments section fulfil its promise as a part of Scotland's conversation with itself.
We are lucky at The Herald. We are read by an informed, educated readership who can add their knowledge and insights to our stories.
That is invaluable.
We are making the subscriber-only change to support our valued readers, who tell us they don't want the site cluttered up with irrelevant comments, untruths and abuse.
In the past, the journalist’s job was to collect and distribute information to the audience. Technology means that readers can shape a discussion. We look forward to hearing from you on heraldscotland.com
Comments & Moderation
Readers’ comments: You are personally liable for the content of any comments you upload to this website, so please act responsibly. We do not pre-moderate or monitor readers’ comments appearing on our websites, but we do post-moderate in response to complaints we receive or otherwise when a potential problem comes to our attention. You can make a complaint by using the ‘report this post’ link . We may then apply our discretion under the user terms to amend or delete comments.
Post moderation is undertaken full-time 9am-6pm on weekdays, and on a part-time basis outwith those hours.
Read the rules hereComments are closed on this article