As a result of the attacks, many governments across the world passed legislation to combat terrorism. In Germany, where several of the 9/11 terrorists had resided and taken advantage of that country's liberal asylum policies, two major anti-terrorism packages were enacted. The first removed legal loopholes that permitted terrorists to live and raise money in Germany. The second addressed the effectiveness and communication of intelligence and law enforcement. Canada passed the Canadian Anti-Terrorism Act, that nation's first anti-terrorism law. The United Kingdom passed the Anti-terrorism, Crime and Security Act 2001 and the Prevention of Terrorism Act 2005. Similarly, New Zealand enacted the Terrorism Suppression Act 2002.
In the United States, the Department of Homeland Security was created to coordinate domestic anti-terrorism efforts. The USA Patriot Act gave the federal government greater powers, including the authority to detain foreign terror suspects for a week without charge, to monitor telephone communications, e-mail, and Internet use by terror suspects, and to prosecute suspected terrorists without time restrictions. The Federal Aviation Administration ordered that airplane cockpits be reinforced to prevent terrorists gaining control of planes, and assigned sky marshals to flights. Further, the Aviation and Transportation Security Act made the federal government, rather than airports, responsible for airport security. The law created a federal security force to inspect passengers and luggage, causing long delays and concern over passenger privacy.