Hollywood actress Lindsay Lohan broke down as she was sentenced to 90 days in jail for violating her probation.
A judge in California ruled she had failed to attend alcohol-education classes arising from a drug case in 2007.
The actress burst into tears after the ruling.
Lohan has missed seven classes since December, which led to the judge's harsh rebuke moments after the Mean Girls star offered a tearful apology.
"I did do everything I was told to do and did the best I could to balance jobs and showing up," Lohan told the judge. "It wasn't vacation, it wasn't some sort of a joke."
The judge said she found Lohan's apology insincere, comparing it to "somebody who cheats and thinks it isn't cheating if she doesn't get caught".
Lohan was not immediately taken into custody and will be permitted to surrender on July 20. She will have to wear an ankle alcohol monitor until then.
It was unclear how much time Lohan will actually spend in jail. A spokesman for the County Sheriff's department said female inmates convicted of non-violent misdemeanors serve about a quarter of their sentence, but that can be further reduced by state credits.
Lohan could be returning to the suburban Lynwood jail where she spent 84 minutes in 2007 after pleading guilty to two misdemeanor counts of being under the influence of cocaine, and no contest to two counts of drink-driving. She had been sentenced to four days behind bars.
The same jail housed Paris Hilton for 23 days in 2007 after she was found guilty of driving on a suspended license while on probation in an alcohol-related, reckless-driving case.
The judge revoked Lohan's probation and ordered her to wear an ankle alcohol monitor after the starlet missed a court date in May. She was promoting a film project in Cannes at the time and claimed her passport was stolen.
The monitor issued an alert after the actress attended the MTV Movie Awards last month.