The McCarran Internal Security Act was a law passed in 1950 that gave the federal government more control over people who were believed to be dangerous to the security of the United States. This included foreign visitors, communists, and even people who had associations with them. The law allowed the government to put certain people in jail or deport them quickly if they thought they posed a threat. The government also had the power to search homes and businesses if they thought someone was a danger. This law was used to keep suspected communists away from the United States during the Cold War.