The main purpose of this legislation is to hold mayors of sanctuary cities criminally liable if a murder is committed by an undocumented immigrant within their jurisdiction. The law aims to deter such policies that limit cooperation with federal immigration enforcement, arguing that these policies can contribute to violent crime.