Why did the USA and its allied invaded Afghanistan and why did thy stay until now.

Why did the USA and its allied invaded Afghanistan and why did thy stay until now.

DRP. Defense Research Paper.