Lindsay Lohan is a free woman. The actress has been in and out of court for years, but she finally finished her probation. This is Lohan’s first time off of probation since 2007.

The 28-year-old "Mean Girls" actress has had many run ins with the law over the last several years. Her probation started in 2007 after she was arrested and charged with drug possession and a DUI in Lynwood, California, but most recently, time was added on from her 2012 reckless driving case in Los Angeles, TMZ reports.

Many people weren’t sure if Lohan could finish her community service in time. She claimed she finished her hours in February, but Judge Mark Young denied 125 of those hours were valid. When Young checked in with the actress earlier this month, she had completed less than 10 of her 125 remaining hours. He ordered her to complete 115 hours within three weeks, according to E! News.

Lohan managed to finish her community service on time, but she was cutting it close. She turned in her hours to the court just one day before her deadline. NBC 4 New York reported that Lohan could have faced up to a year and a half in jail if she didn’t complete the work.

The actress was not present in the court when she was given the all clear. Her lawyer, Shawn Holley, was there to represent her. “Not only did she complete all of the hours, but reports from both of the places where she did her work have nothing but high praise for her,” Holley told TMZ before she entered the courthouse. “She worked really hard. She worked 11 and 12 hour days. They have nothing but good things to say, and I am just so pleased.”

Lohan was very public about her attempts to fulfill the requirement. She has posted several photos to Instagram where she can be seen hugging a child at the Duffield Children's Center in Brooklyn and gardening at the TLC Women’s Shelter in New York City.

The star, who got her big break in 1998’s “The Parent Trap,” expressed her gratitude in her latest statement: "I am very grateful to those at Brooklyn Community Services, Duffield and The Ali Forney Center for welcoming me into their services and allowing me to finish my court ordered Community Service hours. Thank you to Shawn and everyone involved for having faith in me and supporting me in getting the job done. I look forward to working with The Ali Forney Center and BCS in the future. Thank you for the inspiration. Clean slate. Fresh start."