How and why did the United States pursue wars in Afghanistan and Iraq?

The 9/11 attacks fundamentally impacted the lives of Americans. The United States has been at war ever since. Why did the attacks occur? Do you believe that President George W. Bush responded effectively? How and why did the United States pursue wars in Afghanistan and Iraq? To what degree did President Obama make progress in the region? Explain. Please be sure to include analysis in your answer, Your answer should be at least 750 words.