Pakistan-Afghanistan Relations
Pakistan and Afghanistan share a 2,640-kilometre border, a history of refuge and war, and a relationship that has swung from alliance to open fighting. This Topic Dive traces the Durand Line dispute, the Soviet war, the Taliban years, and the border war of 2025 and 2026, with the facts CSS and PMS candidates need.
Key Exam Takeaways

Introduction
Pakistan and Afghanistan are neighbours that cannot ignore each other. They share a 2,640-kilometre border, the Durand Line, and their peoples, languages, tribes and trade have crossed that line for centuries. They have maintained diplomatic relations since 1948, with embassies in Kabul and Islamabad, yet their relationship has been one of the most tested in South Asia. Four things have shaped it: the disputed border, the millions of Afghan refugees who have lived in Pakistan, the trade that moves through Torkham and Chaman, and the security question of militant groups that operate across the frontier. For CSS and PMS candidates this is a standard subject in Pakistan Affairs, Current Affairs and International Relations. The fixed facts are the Durand Line Agreement of 1893, Pakistan's admission to the United Nations in 1947, the Soviet war of 1979 to 1989, the Taliban years, the transit trade agreement of 2010, the repatriation drive of 2023, and the border war of 2025 and 2026. This topic traces them in order.
The Durand Line: The Border at the Heart of the Dispute
The Durand Line was drawn on 12 November 1893, when Mortimer Durand of British India and Amir Abdur Rahman Khan of Afghanistan signed a single-page agreement of seven short articles fixing the limit of their spheres of influence. A joint British-Afghan demarcation survey began in 1894 and covered about 1,300 kilometres of the border. The line was modified and ratified by the Anglo-Afghan Treaty of Rawalpindi of 8 August 1919, and Pakistan inherited it in 1947. It is internationally recognised as Pakistan's western border, but no Afghan government has formally recognised it. Afghan governments have at times demanded that it be renegotiated, aiming to shift it eastward to the Indus River. The dispute is about more than a line on a map. The Pashtun tribes live on both sides of it, and the idea of Pashtunistan, a homeland for the Pashtuns, has run through the relationship since 1947. In 1952 Afghanistan published a tract claiming the Pashtun-dominated regions of northwestern and southwestern Pakistan, and also Balochistan. On 30 March 1955 a pro-Pashtunistan group attacked the Pakistani embassy and the ambassador's residence in Kabul. In 1960 the Afghan military under Prime Minister Daoud Khan launched an unsuccessful invasion in Bajaur, in Pakistan. Diplomatic relations were cut off between 1961 and 1963, and were re-established only after Daoud Khan was ousted in 1963. President Hamid Karzai later called the Durand Line "a line of hatred that raised a wall between the two brothers". The border has also been fenced. Pakistan began fencing it on 27 April 2017, at a cost of about 530 million US dollars, and about 70 per cent was complete by November 2019, despite Afghanistan's opposition. For examiners, the Durand Line is the first fact of this relationship: its date, its makers, its length, and the fact that Afghanistan has never accepted it.
From 1947 to the Soviet War and the Taliban
The relationship began badly. In 1947 Afghanistan was the only country to vote against Pakistan's admission to the United Nations, though it withdrew its negative vote days later, in October 1947, and the two countries established diplomatic relations in 1948. The Soviet invasion of Afghanistan in December 1979 changed everything. Pakistan supported the Afghan mujahideen in the Soviet-Afghan War of 1979 to 1989, and became a front-line state and a training ground for the resistance. Over three million Afghans sought refuge in Pakistan, the largest refugee population in the world at the time, and many of their families still live in Pakistan today. After the Soviet withdrawal the mujahideen factions fought each other, and Pakistan backed Hezb-e Islami Gulbuddin until 1994. That year the Inter-Services Intelligence played a major role in the creation and funding of the Taliban, who captured Kandahar in September 1994. Pakistan saw the Taliban as a way to secure trade routes to Central Asia and to have a friendly government in Kabul. When the Taliban took power in 1996, Pakistan was one of only three states to recognise their Islamic Emirate, with Saudi Arabia and the United Arab Emirates. After the Taliban were overthrown in 2001, Pakistan and the Islamic Republic of Afghanistan maintained relatively cool relations, with frequent border skirmishes. Pakistan voiced support for the Taliban takeover of Afghanistan in August 2021, under Prime Minister Imran Khan, but it has not formally recognised the Taliban government since its return to power. In May and June 2025 the two sides upgraded their chargés d'affaires to ambassadors, Pakistan's Ubaid-ur-Rehman Nizamani in Kabul and Afghanistan's Sardar Ahmad Shakeeb in Islamabad, while Pakistan made clear that the move was not formal recognition of the Taliban government.
Refugees, Trade and the Border War of 2025 and 2026
The human side of the relationship is the refugee question. In October 2023 about 4.4 million Afghans were in Pakistan according to government figures, about 3.8 million according to the United Nations. On 3 October 2023 Pakistan announced the Illegal Foreigners Repatriation Plan, directing undocumented foreigners to leave by 1 November 2023. About 1.7 million Afghans were undocumented. About 2.7 million Afghans returned to Afghanistan from Pakistan between 2023 and September 2026, according to United Nations figures, and about 1.6 million remained in Pakistan. The drive was later extended to Afghan Citizen Card holders, with a deadline of 31 March 2025, and to Proof of Registration card holders, with a deadline of 31 August 2025. The economic side is the transit trade. The Afghanistan-Pakistan Transit Trade Agreement of October 2010 replaced the 1965 agreement and lets Afghan trucks enter Pakistan through Torkham, Ghulam Khan and Chaman to use the ports of Karachi, Port Qasim and Gwadar. Afghan goods may travel on to Wagah for India, but Indian goods may not come back through Pakistan. In return Pakistan gained transit access through Afghanistan to Central Asia. In October 2017 Afghanistan stopped Pakistani trucks from moving through its territory, and the agreement's ten-year term expired in February 2021; it has since been extended by short-term protocols. Border closures since October 2025 have disrupted this trade, and Afghanistan has shifted some of it to the Iran route. The security side is the Tehreek-e-Taliban Pakistan. Since the Taliban returned to power in 2021, Pakistan has accused the Taliban government of sheltering TTP fighters who attack Pakistan, while Kabul denies the link and calls it Pakistan's internal issue. That dispute turned into open fighting. Clashes broke out on the night of 10-11 October 2025 along the border; Pakistan's military said 23 Pakistani soldiers were killed and over 200 Taliban and affiliated militants died. On 19 October 2025 the two sides agreed to an immediate ceasefire in talks in Doha, mediated by Qatar and Turkey, but the follow-up talks in Istanbul broke down in November 2025. On 21-22 February 2026 Pakistani airstrikes hit sites in Nangarhar, Paktika and Khost, and the United Nations Assistance Mission in Afghanistan said at least 13 civilians were killed. On 26-27 February 2026 Defence Minister Khawaja Asif declared there was now "open war" between the two countries, and Pakistan named its campaign Operation Ghazab lil-Haq, with strikes on Kabul, Kandahar and Paktia. Fighting continued through 2026 at a lower level, with further clashes in September and October, mediation by Qatar, Turkey, Saudi Arabia and China, and a round of talks in Istanbul on 6-7 November 2026 that ended without an agreement. By November 2026 no durable settlement had been reached, and the border that has divided the two countries since 1893 was once again the front line between them.
References and Resources
Wikipedia, "Afghanistan-Pakistan relations", en.wikipedia.org/wiki/Afghanistan-Pakistan_relations, accessed 29 November 2026. Wikipedia, "Durand Line", en.wikipedia.org/wiki/Durand_Line, accessed 29 November 2026. Wikipedia, "Deportation of undocumented Afghans from Pakistan", en.wikipedia.org/wiki/Deportation_of_undocumented_Afghans_from_Pakistan, accessed 29 November 2026. Wikipedia, "Afghanistan-Pakistan Transit Trade Agreement", en.wikipedia.org/wiki/Afghanistan-Pakistan_Transit_Trade_Agreement, accessed 29 November 2026. Dawn, "Pakistan, Afghanistan agree to immediate ceasefire after Doha talks: defence minister", 19 October 2025, dawn.com/news/1949845. Nikkei Asia (Reuters), "Pakistan and Afghanistan agree to immediate ceasefire after Doha talks", 19 October 2025. CNN, "Pakistan, Afghanistan agree to new ceasefire after more than a week of deadly clashes", 19 October 2025. ACAPS, "Conflict escalation affecting multiple provinces since 21 February 2026", briefing note, 3 March 2026. Nikkei Asia (Associated Press), "Pakistan defense minister says there is now 'open war' with Afghanistan", 27 February 2026. Al Jazeera, "Pakistan-Afghanistan updates: Iran, EU urge dialogue amid deadly clashes", 28 February 2026. Institute of South Asian Studies, "Misaligned Expectations: Pakistan-Afghanistan Military Escalation", ISAS Brief No. 1349, 3 March 2026. Dawn, "Kabul also levels up its Pakistan diplomat to ambassador as ties see 'normalisation'", 30 May 2025, dawn.com/news/1914506. The News, "90pc Afghan refugees left Pakistan in three years: envoy", November 2026. Pakistan Observer, "Fencing Pak-Afghan border", pakobserver.net. Pakistan Today, "The troubled road to Afghan trade is not a dead-end", 30 August 2020. The Express Tribune, "Multimodal air to land transit for Afghans okayed", 2021. CommandEleven, "Pakistan and the Taliban After Kandahar: A Year of Failed Mediation and a Deadline Near November 21", November 2026. Defense and Tech, "Pakistan-Afghanistan War: Where Things Stand in October 2026", 13 October 2026, updated 28 October 2026. MonitorWorld, "Afghanistan Pakistan War: Live Map, Border Clashes, News", updated 29 November 2026. Photo: Torkham border crossing, September 2011, Master Sgt. Michael O'Connor, US Armed Forces, Wikimedia Commons, CC BY 2.0.
