<human>:  Why did the US invade Afghanistan?
<bot>: The US invaded Afghanistan in 2001 after the terrorist attacks of September 11th. The US wanted to get rid of Al-Qaeda and its Taliban allies, who had been harboring them.