Superior Court Judge Stephanie Sautner sentenced the actress for violating the terms of her release by being terminated from a community service assignment at a women's shelter.
The actress acknowledged she violated her probation.
Sautner imposed a complicated sentence on the actress, telling her that she will now have to perform all of her community service at the county morgue or risk serving an additional 270 days in jail.
The actress' sentence will be shortened due to jail overcrowding.
The judge also ordered Lohan to continue undergoing counseling sessions and kept the actress on a short leash. The judge told Lohan she must report back to court in December, January, February and March for updates.
Lohan will also get a new probation officer that Sautner said she has ordered to report any violations directly to the court. If Lohan fails to comply with the new sentence, Sautner said she would immediately send the starlet to jail for the remaining 270 days of her sentence.
It will Lohan's fifth jail sentence since being arrested twice for drunken driving in 2007. The 25-year-old last served 35 days on house arrest on a four month jail sentence.
Sautner revoked Lohan's probation at a hearing nearly two weeks ago.
The judge had asked prosecutors to calculate how long of a jail term the actress would have to serve if she is formally found in violation of her probation for misdemeanor drunken driving and theft cases.
Sautner, who is the fifth judge that Lohan has faced since her first arrest in 2007, has expressed exasperation with the actress and California's budget-strapped jail system.
The Los Angeles City Attorney's Office advocated jail time for the actress, however spokesman Frank Mateljan declined to provide further details.
Lohan's spokesman, Steve Honig, declined comment before the hearing.
The "Mean Girls" star has been reporting to the Los Angeles morgue regularly, which Sautner ordered her to do at the last court appearance. The judge had sentenced Lohan to serve 120 hours doing janitorial work at coroner's office in April, but expressed hope that the actress would benefit from working three times that amount of hours at a women's shelter.
Lohan was terminated from the shelter program after failing to show up nine times at the center. She told her probation officer the assignment was not fulfilling, according to the actress' probation report.
The actress' morgue service has not been without drama - she was turned away the first day after showing up 40 minutes late. She has shown up early several times since then. Assistant Chief Coroner Ed Winter declined to characterize how Lohan's service was progressing Tuesday.
The former Disney star has been sent to jail, rehab, counseling and community service numerous times since being arrested twice for drunken driving in 2007. Her probation on that case is nearly over, but her release remains supervised after Lohan in May pleaded no contest to misdemeanor theft for taking a $2,500 necklace without permission in January.
Once a headlining actress, Lohan's court and personal troubles have overshadowed her career for years.