The main purpose of this legislation, known as the DHS Release Transparency Act, is to improve communication regarding the release of individuals detained by U.S. Customs and Border Protection (CBP) or U.S. Immigration and Customs Enforcement (ICE). The law aims to ensure that designated contacts for these individuals are kept informed about their release status, enhancing transparency and support for detainees and their families.