Why did the United States attack Afghanistan following the terrorist attack on September 11, 2001?

The leaders of Afghanistan refused to abide by UN Resolution 687.

Members of al-Qaeda had taken over the government in Afghanistan.

Taliban leaders refused to turn Osama bin Laden over to U.S. officials.

Taliban leaders threatened continuous attacks on the United States.