(CNN) If you've been arrested for weed in Illinois, you can breathe a sigh of relief.

Illinois Gov. JB Pritzker just signed HB 1438 this week, which makes cannabis legal in the state for individuals 21 and over, along with sweeping criminal criminal justice reforms designed to help those whose lives have been upended by the state's drug laws.

In addition to legalizing marijuana, the 610-page bill offers relief to the roughly 770,000 residents of the state with marijuana-related offenses on their criminal records, according to the Marijuana Policy Project

A new law legalizes weed and helps those caught with it in the past

The state's new Cannabis Regulation and Tax Act, which takes effect in 2020, allows people to automatically receive clemency for convictions up to 30 grams of cannabis. Those convicted with larger amounts, from 30-500 grams can petition a court to have the charge lifted.

Read More