R&B singer Chris Brown has pleaded guilty in the US to one count of assault on his former girlfriend, pop star Rihanna, BBC reported.
Brown, 19, was sentenced to five years' probation and ordered to do six months of community service.
Brown had faced charges of assaulting Rihanna, 21, during a row in February.
The last-minute plea deal came before a hearing at a Los Angeles court at which Rihanna was due to give evidence. She said the sentence was "fair".
Brown had been facing a potential jail sentence of four years.
His sentence involves five years of supervised probation and six months of community labour, such as picking up litter or removing graffiti.
He will also have to attend courses on domestic violence.
The Los Angeles County Superior Court judge also ordered Brown and Rihanna to stay at least 50 yards from each other, except at entertainment industry events when the distance is reduced to 10 yards.
Judge Patricia Schnegg told him: "I think it's commendable that you took responsibility for your conduct, sir."
Rihanna's lawyer, Donald Etra, said the singer believed it was a "fair and just resolution" to the case.
Brown, singer of the hits Run It and Kiss Kiss, was questioned by police on 8 February over a complaint of assault.
Police said he had been in an argument with an unidentified woman in a parked car in the Hancock Park area of Los Angeles, which escalated after they left the vehicle.
Both Brown and Rihanna, whose hits include Umbrella, pulled out of that night's Grammy awards, where they had been due to perform.
He has since said he was "sorry and saddened" by the incident and was seeking counselling.
After reports of the assault emerged, a photograph was posted on a US gossip website which purported to show Rihanna, who hails from Barbados, in the hours after the incident with welts, scratches, bruises and swelling on her face.
After it appeared, the Los Angeles Police Department launched an internal investigation and asked for the public's help in finding the person who leaked it.