We fracked our way back to being the worlds largest oil producer. That, and our transition to a greener economy is bad news for middle eastern oil producers. We're much more willing to leave the entire region to their own miserable devices.
Biden is getting a lot of flack for pulling out of Afghanistan, and yes, he completely dropped the ball on the organization of the withdrawal, but if it means that not one more drop of american blood is shed, it's worth it.
The US has abandoned Syria, Iraq, Kurds. It still has some sway with Saudi Arabia and Israel, none in Egypt or Libya.
The withdrawal from Afghanistan is a culmination of that.
The neo-conservative response to Al Qaeda was exactly what was needed to provoke this collapse over 20 years.
The purpose of the 9/11 attacks was to get the American public to demand the US withdraws support to Israel and Saudi Arabia. This has clearly failed.
It wasn’t much involved in any of those (and indeed had already abandoned the Kurds after the conflict which motivated the formation of al-Qaeda) when al-Qaeda actually got organized. It got reinvolved with them largely enabled by the political fallout from 9/11.
> The withdrawal from Afghanistan is a culmination of that.
Again, that's mostly a reversion to the status quo ante.
The stated goal of the attacks was to show Americans that their continuous war and support for secular dictators in the Muslim world would come with high cost, and to force the American government to retreat from the Middle East.
This of course backfired spectacularly. Revenge is certainly a primary motivation, too, but I really don't think there is much room on the interpretation for the initial motivation because Al Qaeda was always very open and clear about it.