The main purpose of this legislation, known as the "Worst of the Worst Act," is to enhance public safety by creating a database that tracks individuals who are non-citizens and have been released from custody after committing crimes. The goal is to provide transparency and information to the public regarding these individuals, which supporters argue could help communities stay informed about potential risks. Key provisions of the law require the Secretary of Homeland Security to establish and maintain a publicly accessible database within 180 days of the law's enactment.