The Taliban regained control of Afghanistan in August 2021, when the United States and its Western allies withdrew their troops from the country after a nearly two-decade-long presence.