Take a country (A) with basically medieval values, run by a fanatical, backward religion and feed in massive amounts of oil revenue.
Money is used to sponsor terrorism and global Islamic proselytizing. Ignore beheadings, civil rights, etc., ignore the hypocrisy of people who ban alcohol but have massive stocks of booze in their palaces and abhore homosexuality but practice it in foreign lands, then flee back home when someone gets killed. Sell them loads of weapons and support them up to the hilt. Do so even when they fund their nationals to crash planes into your own buildings.
Take another country (B) with almost exactly the same situation and backward views (but without putting the suicidal maniacs on your own soil). Now consider them mortal enemies because they threw out the dictator you wanted running the show and put in their own religious fanatics. Shoot their passenger planes out of the sky and just say, "oops". Try and starve them into submission without the support of the rest of the world.
(A) and (B) are sworn enemies, based on their different interpretations of how they should think about their common, imaginary friend. They both think they alone should be running Arabia.
What could possibly go wrong? Did someone actually think this through?