The main purpose of this legislation, known as "Sarah's Law," is to require U.S. Immigration and Customs Enforcement (ICE) to detain certain non-citizens who have been charged with crimes that resulted in death or serious bodily injury to another person. The goal is to enhance public safety by ensuring that individuals facing serious criminal charges are held in custody while legal proceedings are ongoing. Key provisions of the law include a mandatory detention requirement for non-citizens charged with crimes leading to death or serious bodily injury.