The purpose of this legislation, known as the "Laken Riley Act," is to enhance the enforcement of immigration laws by requiring the detention of certain non-citizens who have been charged with theft-related crimes in the United States. The act aims to ensure that individuals who commit these offenses are taken into custody by the Department of Homeland Security (DHS) to address concerns about crime and public safety.