The Germany–Pakistani relations (German: Deutschland–Pakistan-Beziehung Urdu: پاکستان جرمنی تعلقات) are the diplomatic and bilateral relations between Germany and Pakistan. Succeeded by the historical British Raj strong ties in the 1910s–40s, the relations were fully established in the 1950s, which were primarily based on mutual friendship, cultural, and mutual cooperation in social, education, and economic developments. Relations with Pakistan were first established by West-Germany and later on by East Germany with East-Pakistan, also in the 1950s.
As of current, Germany maintains an embassy in Islamabad and consulate-generals in Karachi, Lahore, Peshawar and Quetta. Pakistan has as embassy in Berlin and consulate-generals in Hamburg, Brandenburg, and other cities of Germany. Despite strong cooperation and historical ties, the recent difficulties grew in bilateral relations of both countries as the political issues of Afghan war becoming the prime factor in both countries' strategic policies on settlement in 2014.
Relations during cold war:1950s–1990s
The bilateral relationships were succeeded by historical British India relations in the 1940s, and finally restored in the 1950s after the establishment of both the countries in the late 1940s. Both, West and East Germany had tilted toward forming alliance with India in 1950s and maybe also because of the mentioned historical romantic traditions idealizing India.
Although Pakistan's relations with West-Germany was relatively healthy and based on mutual cooperation; the relations with East-Germany was deteriorated. In contrast, East-Germany maintained strong relations with East-Pakistan in the 1950s.
In 1961, President Ayub Khan paid a first state visit to West Germany, meeting with German president Heinrich Lübke and Chancellor Konrad Adenauer. During this time, Germany partnered with Pakistan to launched industrial development program; hence becoming one of the first economic partner of Germany.
In the 1960s, West Germany started a prolonged and heavy industrial programmes to aid Pakistan in its industrialization growth. West Germany idealized Pakistan as "an example of successful development policy in the developing country.". Although, Germany retained neutrality policy during the 1971 war of India and Pakistan; East Germany became the third country in the world, and the first country in Europe, to officially recognized Bangladesh in 1972 after its succeeded independence in 1971. In the 1970s, Pakistan normalize its relations with East-Germany and Soviet bloc.
Since they established diplomatic relations, Germany and Pakistan have both enjoyed extremely closed and cordial relationships. Before the re-unification of Germany, Pakistan maintained warm and cordial relationships with both East-Germany and West-Germany. Germany is home to 35,081 Pakistani immigrants and around more than 1200 Germans currently reside in Pakistan, mostly residing in Karachi, Lahore, and Peshawar. Germany maintains a healthy diplomatic presence in the country, with an embassy in Islamabad, a consulate in Karachi and honorary-consulates in Lahore, Peshawar, and Quetta. Germany also is one of the countries playing a vital and influential role in Pakistan's current political events, others being Saudi Arabia, China, the United States, and the United Kingdom
The economical and financial development cooperation between Pakistan and Germany goes back to 1961, with trade investment exceeding € 2.3 billion. Germany is now Pakistan's fourth largest trade partner.
During the 1970s, Zulfikar Ali Bhutto took extensive initiatives to strengthen Pakistan's ties with Germany. Under Bhutto, the military academies of each country signed a strategic and military training pact. German military officials and cadets frequently visit the Pakistan military academy and Pakistanis visit Germany in return. In the 1980s, the Germany—Pakistan relations saw a military alliance and supported each other while running clandestine operations against the Soviet Union's presence in Afghanistan SSR.
In the 1990s, Germany and Pakistan sought a business alliance, known as the Pakistan German Business Forum. It was formed in 1997 with the humble initiatives of the German ambassador to Pakistan. Commercial trade between Islamabad and Berlin has also been very essential in recent years, as Germany is Pakistan's fourth largest trade partner.  In 2000, Germany became one of Pakistan's most important allies surrounding the war in North-West Pakistan between Pakistan and the Taliban. In recent years, the Germany—Pakistan trade and science relations have developed greatly with Germany investing in and trading with Pakistan. Germany is actively involved in Pakistan's socio-economic development and is an active member of the Friends of Democratic Pakistan Forum.
On August, 2014 German Ambassador in Pakistan Dr Cyrill Nunn informed Finance Minister Senator Ishaq Dar in order to foster economic energies German businessmen were launching ‘Pakistan Gate’ in Berlin on August 24, 2014 which would provide business contacts between the two countries.
Research and academic exchange
The academic cooperation and research exchange dates back to the 1930s, when many scientists (who opted to join Pakistan) worked with Germany. In 1960, following the start of the German—Pakistan cooperation, the world acclaimed Institute of Physics (IoP) was built at the University of Islamabad. Germany also sent its scientists to interact with Pakistan's scientists, contributing to the rise of physics in Pakistan. Germany also helped Pakistan to participate in CERN projects and supported Pakistan in numerous occasions for Pakistan's observant status in CERN. Germany also allowed hundreds of Pakistan's physicists and mathematicians to conduct their research in DESY. Ayub Khan, then-Chief Martial Law Administrator, built strategic ties with East and West Germany.
Perception on relations
Pakistan perception in Germany and tensions
In 2012, the relations had been down and cooled when Pakistan's police detained three alleged German intelligence agents near the Afghan border. All three agents were interrogated by the FIA agents before being deported from the country with "Persona non grata" after Germany loaded a protest. In March 2013, German media reported that German intelligence agencies arrested an alleged Pakistani agent working on obtained sensitive data information on drones; no other details were provided.
In recent, German Foreign minister Guido Westerwelle paid a state visit to Pakistan in June 2013 where he met with Prime Minister Navaz Sharif and later convened a press conference with Sartaj Aziz, national security adviser. When asked by a Pakistani journalist about Germany's view on U.S. Drone policy that is violating Pakistan's sovereignty and collateral damage done by the drones; Foreign minister Westerwelle rebutted the question, and immediately started to present grave condolences in a recent suicide attack that killed three American soldiers in Afghanistan. According to the Urdu editorial written by Saleh Zaafir who also attended the press conference, Westerwelle's such behavior was much shocking and dismaying to Aziz, foreign officials, and the Pakistani journalists.
- Staffe. "Die Auslandsvertretung auf den mit Pakistan im Berlin, Duetschland". Government auf dem mit Pakistan. Die Missionen Genannt auf den mit Pakistan. Retrieved 25 June 2013.
- et. al. "Der Pakistan und Duestschland Beziehung". Ministrium die Internationale Beziehungen und missionian Auslandsvertretung. Ministrium die Internationale Beziehungen, Islamabad Auslandsvertretung. Retrieved 25 June 2013.
- et. al (22 June 2007). "Germany warns of terror threat, action being planned in Pakistan". Ajj Television, archives. Retrieved 25 June 2013.
- Staffe (September 15, 2010). "Pak-German bilateral relations need to be strengthened". Daily Times, Pakistan. Retrieved 25 June 2013.
- Robotka, Bettina. "Germany's South Asia Strategy: Implications for Pakistan" (PDF). Centre of Area and Policy Studies of Humboldt University of Berlin. Robotka, Humboldt University of Berlin. Retrieved 24 June 2013.
- Ministrium aus dem Ekonomik. "50 years of Pakistan-German Development Cooperation" (PDF). Ministrium aus dem Ekonomik. Retrieved 26 June 2013.
- staff reporter (January 11, 1972). "East-Germany recognize Bangladesh". Ocala, Florida, USA: Ocala Star-Banner. Ocala, Florida, USA: Ocala Star-Banner, via Google News. Associated Press. Retrieved 24 June 2013.
- Hasnain Kazim in Islamabad. "German-Pakistani Tensions:". Der Spiegel. Retrieved 24 June 2013.
- Mughal, Ubaid (24 June 2012). "Pakistan releases three German spies". Newstribe. Retrieved 25 June 2013.
- Reuters (March 29, 2013). "German police arrest Pakistani for suspicion in drone spying case". Express Tribune. Retrieved 25 June 2013.
- GJH/HGL (9 June 2013). "Rein in the terror drones, Pakistan PM tells US". Press tv.it. Retrieved 25 June 2013.
- Zaafir, Muhammad Saleh (9 June 2013). "German foreign minister's behavior shocked Pakistani foreign officials and journalists". Jang Newspapers. Retrieved 25 June 2013.