The Taliban controlled most of Afghanistan from 1996 to 2001, when it was ousted for harboring al Qaeda chief Osama bin Laden after the Sept. 11 attacks on the United States.