Foreign relations
Since independence, Pakistan has aimed to maintain an independent foreign policy. Pakistan's foreign policy and geostrategy focus on the economy, security, national identity, and territorial integrity, as well as building close ties with other Muslim nations. According to foreign policy expert Hasan Askari Rizvi, "Pakistan highlights sovereign equality of states, bilateralism, mutuality of interests, and non-interference in each other's domestic affairs as the cardinal features of its foreign policy."
The Kashmir conflict remains a major issue between Pakistan and India, with three of their four wars fought over it. Due partly to strained relations with India, Pakistan has close ties with Turkey and Iran, both focal points in its foreign policy. Saudi Arabia also holds importance in Pakistan's foreign relations.
As a non-signatory of the Treaty on Nuclear Non-Proliferation, Pakistan holds influence in the IAEA. For years, Pakistan has blocked an international treaty to limit fissile material, arguing that its stockpile does not meet its long-term needs. Pakistan's nuclear program in the 20th century aimed to counter India's nuclear ambitions in the region, and reciprocal nuclear tests ensued after India's nuclear tests, solidifying Pakistan as a nuclear power. Pakistan maintains a policy of Full spectrum deterrence, considering its nuclear program vital for deterring foreign aggression.
Located strategically in the world's major maritime oil supply lines and communication fiber optic corridors, Pakistan also enjoys proximity to the natural resources of Central Asian countries. Pakistan actively participates in the United Nations with a Permanent Representative representing its positions in international politics. It has advocated for the concept of "enlightened moderation" in the Muslim world. Pakistan is a member of the Commonwealth of Nations, SAARC, ECO, and the G20 developing nations.
Pakistan is designated as an "Iron Brother" by China, emphasising the significance of their close and supportive relationship. In the 1950s, Pakistan opposed the Soviet Union for geopolitical reasons. During the Soviet–Afghan War in the 1980s, it was a close ally of the United States. Relations with Russia have improved since the end of the Cold War, but Pakistan's relationship with the United States has been "on-and-off". Initially a close ally during the Cold War, Pakistan's relations with the US soured in the 1990s due to sanctions over its secretive nuclear program. Since 9/11, Pakistan has been a US ally on counterterrorism, but their relationship has been strained due to diverging interests and mistrust during the 20-year war and terrorism issues. Although Pakistan was granted major non-NATO ally status by the U.S. in 2004, it faced accusations of supporting the Taliban insurgents in Afghanistan.
Pakistan does not have formal diplomatic relations with Israel; nonetheless, an exchange occurred between the two countries in 2005, with Turkey acting as an intermediary.
Pakistan was among the first nations to establish formal diplomatic ties with China, forging a strong relationship since China's 1962 conflict with India, culminating in a special bond. During the 1970s, Pakistan acted as an intermediary in U.S.-China rapprochement, facilitating US President Richard Nixon's historic visit to China. Despite changes in Pakistani governance and regional/global dynamics, China's influence in Pakistan remains paramount. In reciprocation, China stands as Pakistan's largest trading partner, with substantial investment in Pakistani infrastructure, notably the Gwadar port. In 2015 alone, they inked 51 agreements and Memorandums of Understanding (MoUs) for cooperative efforts. Both nations signed a Free Trade Agreement in 2006, with China making its largest investment in Pakistan's history through CPEC. Pakistan acts as China's liaison to the Muslim world, and both nations support each other on sensitive issues like Kashmir, Taiwan, Xinjiang, and more.
After Independence, Pakistan vigorously pursued bilateral relations with other Muslim countries. The Ali brothers sought to project Pakistan as the natural leader of the Islamic world, partly due to its significant manpower and military strength. Khaliquzzaman, a prominent Muslim League leader, declared Pakistan's ambition to unite all Muslim countries into Islamistan, a pan-Islamic entity.
These developments, alongside Pakistan's creation, didn't receive approval from the United States, with British Prime Minister Clement Attlee expressing a hope for India and Pakistan to reunite. However, due to a nationalist awakening in the Arab world at that time, there was little interest in Pakistan's Pan-Islamic aspirations. Some Arab countries perceived the 'Islamistan' project as Pakistan's bid to dominate other Muslim states.
Pakistan's founder, Muhammad Ali Jinnah, consistently advocated for the Palestinian cause, shaping Pakistan's foreign policy to support Palestinian rights within the broader framework of Muslim solidarity. During the 1967 Arab-Israel war, Pakistan supported the Arab states and played a key role in securing Iran's backing for the Arab cause both within the U.N. and beyond.
Pakistan's relations with Iran have been strained by sectarian tensions, with both Iran and Saudi Arabia using Pakistan as a battleground for their proxy sectarian war. Since the early days of the Iran–Iraq war, President Zia-ul-Haq played an important mediatory role, with Pakistan actively engaging in efforts to end the conflict. Pakistan provided support to Saudi Arabia during the Gulf War. Pakistan chose to remain neutral during Operation Decisive Storm, refraining from sending military support to Saudi Arabia in its offensive against Yemen. Instead, Pakistan aimed to play a proactive diplomatic role in resolving the crisis, which led to tensions between the two countries. In 2016, Pakistan mediated between Saudi Arabia and Iran following the execution of Shia cleric Nimr al-Nimr, with visits to both countries by then Prime Minister Nawaz Sharif and the Chief of Army Staff, Raheel Sharif.
Pakistan provided refuge to millions of displaced Afghans after the Soviet invasion and supported the Afghan mujahideen in their efforts to expel Soviet forces from Afghanistan. After the Soviets withdrew, infighting erupted among Mujahideen factions over control of Afghanistan. Pakistan facilitated peace talks to help end the conflict. After four years of unresolved conflict between rival Mujahideen groups, Pakistan helped establish the Taliban as a stabilising force. Pakistan's support for the Sunni Taliban in Afghanistan challenged Shia-led Iran, which opposed a Taliban-controlled Afghanistan.
Pakistan vigorously advocated for self-determination among Muslims globally. Its efforts in supporting independence movements in countries like Indonesia, Algeria, Tunisia, Morocco, and Eritrea fostered strong ties. Due to its support for Azerbaijan in the Nagorno-Karabakh conflict, Pakistan has not established diplomatic relations with Armenia.
Pakistan and Bangladesh have experienced strained relations, particularly under the Awami League governments led by Sheikh Hasina, driven by her pro-India stance and historical grievances.
Pakistan, a prominent member of the Organisation of Islamic Cooperation (OIC), prioritises maintaining cultural, political, social, and economic relations with Arab and other Muslim-majority nations in its foreign policy.
In September 2025, Pakistan and Saudi Arabia signed a Strategic Mutual Defence Agreement under which any aggression against one country is considered an aggression against both, formalising a defensive commitment that also extends Pakistan's nuclear umbrella to Saudi Arabia.