The purpose of this legislation, known as the "Stop Dangerous Sanctuary Cities Act," is to enhance cooperation between state and local law enforcement agencies and federal officials. The goal is to better protect communities from violent criminals and suspected terrorists who are in the United States illegally. Key provisions of the law include granting state and local law enforcement the authority to act as agents of the Department of Homeland Security when they comply with federal detainers.