By Brahma Chellaney, The HillFrom left, Turkish President Recep Tayyip Erdogan, Saudi Crown Prince Mohammed bin Salman and Pakistani Prime Minister Shehbaz Sharif pose after signing a trilateral defense agreement in Mecca this month. Photo: Saudi Press Agency via APAmerica’s traditional allies in the Islamic world are not walking away from it, but they are no longer betting everything on Washington. After decades of relying on U.S. security arrangements, they are quietly building alternative partnerships to insulate themselves from Washington’s whims.They may still need America’s technology, intelligence and military heft, but a number of Muslim allies are determined to reduce their vulnerability to American strategic decisions over which they have no say.The Mecca Joint Defense Agreement, signed on August 7 by Saudi Arabia, Turkey and Pakistan, is the clearest signal yet of this shift. By committing to mutual defense (“an attack on one is an attack on all”) and establishing mechanisms for military coordination, intelligence sharing and defense-industrial cooperation, the trio is creating a strategic safety net beyond U.S. oversight.All three members of this Sunni alliance are longstanding U.S. allies or partners. Turkey’s participation is especially momentous: As a NATO member, its decision to join a separate collective-defense alliance highlights how the desire for strategic autonomy has spread within the U.S.-led alliance system.Another U.S. ally, Egypt, which for over 50 years has ranked as the second-largest recipient of U.S. aid after Israel, actively participated in the mutual-defense discussions with Ankara, Riyadh and Islamabad, but at the eleventh hour chose to stay out of the pact. Joining an autonomous defense axis that bypassed U.S. regional leadership could have exposed Egypt to financial and diplomatic risks amid severe economic distress. It could also have been interpreted as a breach of its 1979 peace treaty with Israel, which enshrines the primacy of treaty commitments over conflicting regional defense obligations.The trilateral pact’s explicit reference to “Islamic solidarity,” together with the choice of the Muslim holy city of Mecca as the signing venue, has lent the accord a distinctly pan-Islamic character. It appears designed, at least in part, to provide strategic insurance against an increasingly unpredictable West. It also represents an implicit rejection of the regional architecture President Trump has sought to construct around Israel and the 2020 Abraham Accords.The Mecca axis is not the only warning to America. As U.S. credibility erodes under Trump’s second presidency, U.S. allies in the Middle East and beyond are questioning American commitments and leaning toward hedging. There is already a larger rethink among America’s longstanding Gulf allies about relying on Washington.Trump launched the Iran war without consulting the Gulf allies, then used vast U.S. military resources to shield Israel from Iranian retaliation while leaving the six Gulf sheikhdoms to bear the consequences for enabling American strikes from the U.S. bases that they host. On May 27, Trump even threatened to “blow up” Oman, a peaceful, longtime U.S. ally, if it entered a toll-sharing deal with Iran over the Strait of Hormuz.Against this backdrop, the Gulf monarchies — long the immovable pillars of American power in the Middle East — are fundamentally altering their geopolitical calculations. They face dual risks of depending on the U.S. as a security guarantor while bearing the consequences of helping America wage war.Iranian reprisals threatened precisely the infrastructure on which Gulf economies critically depend, including energy facilities, desalination plants and urban centers.In a notable shift, the Gulf Arab states are no longer prepared to automatically align themselves with the U.S. agenda. In fact, seeking to insulate their ambitious economic and national-security projects from regional conflict, these states have shifted from strict containment of Iran to actively exploring détente with Tehran, including through economic incentives.The Mecca alliance had been in the making for some time. Turkey has longstanding military and strategic ties with both Saudi Arabia and Pakistan, which signed a bilateral mutual-defense agreement in September 2025. Trump’s war on Iran helped transform that accord into a trilateral alliance. The fact that sophisticated American defenses were deployed primarily to protect U.S. and Israeli assets while leaving America’s Gulf allies exposed to Iranian reprisals appears to have influenced strategic thinking in Ankara as well.When a country embedded in the Western security system joins an Islamic alliance it sends a particularly pointed signal about its intent to hedge. Turkey’s decision suggests that it does not believe NATO membership is sufficient for its security. Its foreign minister has approvingly likened the Mecca pact’s mutual-defense provision to NATO’s Article Five.The Mecca alliance’s architecture is striking because each member brings something the others lack. Oil-rich Saudi Arabia contributes financial power. Manufacturing powerhouse Turkey brings a robust defense industry, combat experience and NATO-trained military capabilities. Pakistan, despite being trapped in a chronic debt crisis, brings a large standing military, a nuclear arsenal and experience in asymmetric warfare, including the use of state-backed militant proxies.Critics may dismiss the alliance as a paper tiger because its three militaries are not integrated into a single, NATO-style command structure. The pact’s aim, however, is not to create a unified expeditionary force but to make each member less vulnerable by combining Saudi money, Turkish military technology and Pakistani manpower and nuclear-weapons capabilities.Washington has long complained that its Middle Eastern allies free-ride on American security. The Mecca alliance offers a caustic response: We will take greater responsibility for our own defense — but on our own terms.The pact underscores a paradox: It is both a sign of declining American primacy and an opportunity to craft a more prudent and sustainable U.S. strategy. The U.S. cannot demand that its partners become more capable while it simultaneously insists they remain dependent on Washington.America must face up to an unpalatable reality: The age of exclusive U.S. security provision in much of the Islamic world may be ending, with the Iran war serving as a catalyst. The wise response is not to fight this transition, but to shape it.Brahma Chellaney is the author of nine books, including the award-winning “Water: Asia’s New Battleground.“