The 20-year-old Canadian pop star evaded a felony charge and inked a plea deal with the Los Angeles District Attorney's Office on Wednesday, when he pleaded no contest to one count of misdemeanor vandalism.
The charges stemmed from a January incident, in which Bieber pelted eggs at his former neighbor's Los Angeles mansion.
Los Angeles County Superior Court Judge Leland Harris sentenced the "Never Say Never" singer to five days of community service, anger management and $80,900 in restitution to the homeowner.
He was also ordered to stay 100 yards away from the plaintiff and his family for two years.
Bieber's rep said in a statement that "Justin is glad to get this matter resolved and behind him."
"He will continue to move forward focusing on his career and his music," the rep added.