What event led to the U.S. bombing Afghanistan on October 7, 2001?

The U.S. bombing of Afghanistan on October 7, 2001 was in response to the September 11 attacks on the World Trade Center and the Pentagon, carried out by the terrorist group al-Qaeda, which was based in Afghanistan at the time under the leadership of Osama bin Laden.