Bawling and broken, Lindsay Lohan learned today that she's going back to jail.
Beverly Hills judge Marsha Revel declared the 24-year-old starlet in violation of probation for her 2007 DUI conviction for failing to attend court-ordered alcohol education classes. Revel sentenced Lohan to 90 days in jail followed by 90 days in-patient rehab.
Following Revel's ruling, Lohan broke down sobbing, barely sputtering a "yes" when Revel asked if she understood and accepted the terms of her probation. Revel ordered Lohan to surrender on July 20 at 8:30 a.m. PT.
According to Steve Whitmore, spokesperson for the Los Angeles County Sheriff's department, Lohan will serve her time at the Century Regional Detention Center in Lynwood, California and will be segregated from the general jail population.
Lohan may only end up serving a few weeks of her 90 day jail sentence -- Whitmore noted that "female, non-violent prisoners will do about 25-percent of their sentence" because L.A. jails suffer from "an overcrowding sitution."
After the hearing, Lisa Bloom, the attorney for Lohan's estranged father, Michael, said that if the starlet had followed their advice and gone to rehab, she might not be facing jail time now. Michael Lohan has long maintained that his daughter is addicted to prescription drugs.
"If she had gone to rehab anytime over the last several months, when we were begging her to go to rehab, she could have avoided all of this," Bloom said. "Where she belongs is rehab. We don't believe incarceration is the place for addicts."
Lohan in Court: 'I've Tried to Do the Best I Can'
Prior to learning her fate, Lohan pleaded her case to the court.
"I just wanted to take a minute to say that, as far as I knew, I was being in compliance with my programs," she started. "When I asked to leave town, [the alcohol ed program] would give me permission to leave town."
"I wasn't expecting any special treatment aside from the understanding that I have to provide for myself, I have to work. My schedule is, unfortunately, very different," she continued. "Having said that, I did do everything I was told to do and did the best I could to balance jobs and showing up."
Then, the tears started flowing. Lohan held her head in her hands as she attempted to compose herself. She went on talking, and at times, sounded incomprehensible.
"I know that I was ordered to go once a week. ... I was working, mostly, I was working with children, it wasn't vacation, it wasn't some sort of a joke," she said, sniffling. "I wanted to make sure that I would come back here making you happy and the court system."
Lohan pulled herself together for the conclusion of her monologue.
"I'm not taking this as a joke. It's my life, it's my career," she said. "I've learned from my experiences, I take responsibility for my actions, I've tried to do the best I can."
Her best wasn't good enough in the court's eyes.
"She knew [the prosecutor] would be asking for jail time and yet still after all that, she didn't comply with the court order and the court does find her in violation of her probation," Revel said.
Prosecutor Danette Meyers went to great lengths to show the degree to which Lohan violated her probation by failing to attend weekly alcohol education classes according to the schedule set by Revel.
Lohan's Tuesday hearing lasted for hours. Shortly after it began, Revel demanded to see documents detailing Lohan's performance in the Right On alcohol education program. Revel called a recess so that Meyers could review the documents.
Also at issue: Lohan's SCRAM -- secure continuous remote alcohol monitoring -- bracelet, and whether the fact that it went off on June 7 should be considered in determining whether or not she violated her probation. Ultimately, Revel decided the hearing would focus only on Lohan's alcohol ed class attendence, despite the fact that SCRAM experts flew in to potentially weigh in on the device.
Two representatives from the Right On alcohol education program testified at the hearing. Cheryl Marshall, co-owner of Right On, said that Lohan failed to attend the required minimum of one class per week nine times, but Right On never notified the judge that there was a problem. She added that Lohan came up with a variety of excuses for missing class.
That didn't sit well with prosecutor Meyers.
"[Lohan] clearly violated your orders," she told the judge. "She was to abide by all rules and regulations of the court."
Things didn't get better for Lohan outside the courtroom. According to TMZ.com, the company Tough As Nails served her with civil lawsuit papers in a court house elevator. Lohan is being sued by Church, a store owned by Tough As Nails, for failing to pay for more than $17,000 worth of clothing and accessories.
Lohan's Cruel Summer
It's been a rough summer for Lohan. Her latest hearing stemmed from her SCRAM bracelet going off on June 7 at an MTV Movie Awards after party. After that, Revel doubled the actress's bail to $200,000, and demanded she return to court today.
Revel slapped the SCRAM bracelet on Lohan after she failed to show up for a mandatory hearing in her DUI case in May. (Lohan's excuse: She was stuck at the Cannes Film Festival, where her passport was stolen.)
The starlet couldn't even catch a break for her 24th birthday -- a waitress purportedly punched Lohan at her Thursday night party at Los Angeles' Voyeur Nightclub because of their shared infatuation with British rugby player Danny Cipriani.
Lohan tweeted about the incident Thursday night, writing, "A waitress just hit me - punched me for no reason." In response, the waitress in question, Jasmine Waltz, told RadarOnline.com, "that disturbed little train wreck is delusional! I did not hit her ... but I'd like to."
Lohan countered: "Hahahahahahahahaha."
This will be Lohan's second time in jail. She spent 84 minutes in prison in 2007 after she pleaded guilty to two misdemeanor counts of being under the influence of cocaine and no contest to two counts of driving with a blood-alcohol level above 0.08 percent and one count of reckless driving.
2007 was also the year of two very public arrests for Lohan. She was sentenced to three years of probation but requested a one-year extension in October after failing to complete her alcohol-education courses on time.
ABC News' David Alpert and The Associated Press contributed to this report.