Military coups in Pakistan began in 1958 and there have been three successful attempts. There have also been numerous unsuccessful attempts since 1951. Since its creation in 1947, Pakistan has spent several decades under military rule (1958 – 1971, 1977 – 1988, 1999 – 2008)
In 1958, the first Pakistani President Major General Iskander Mirza dismissed the Constituent Assembly of Pakistan and the government of Prime Minister Feroz Khan Noon, appointing army commander-in-chief Gen. Ayub Khan as the Chief martial law administrator. Thirteen days later, Mirza himself was exiled by Ayub Khan, who appointed himself president.
Operation Fair Play was the code name for the coup d'etat conducted at midnight on July 4, 1977 by the Pakistan military, led by Chief of Army Staff General Zia-ul-Haq, against the government of then-Prime Minister Zulfikar Ali Bhutto. General Zia ordered the arrest of Bhutto, his ministers and other leaders of both the Pakistan People's Party and the Pakistan National Alliance. In a nationally televised address, General Zia announced that the National Assembly of Pakistan and all provincial assemblies were dissolved, and that the Constitution of Pakistan was suspended.
In October, 1999 senior officers loyal to army chief Gen. Pervez Musharraf arrested prime minister Nawaz Sharif and his ministers after thwarting the Sharif regime's attempt to dismiss Musharraf and prevent his plane from landing in Pakistan as he returned from a visit to Sri Lanka.
The death of Zia-ul-Haq led to the appointment of Ghulam Ishaq Khan as President. Khan had vast, unchecked Presidential powers and was known to be close to the Pakistani military. Khan had dismissed both Benazir Bhutto in 1990 and Nawaz Sharif as Prime Minister in 1993, though the latter resulted in his own resignation and is known in Pakistan as the Waheed Kakar formula.
There have been numerous unsuccessful coup attempts in Pakistani history. The first noted attempt was the Rawalpindi conspiracy in 1951 led by Maj. Gen. Akbar Khan along with left-wing activists and sympathetic officers against the government of Liaquat Ali Khan, Pakistan's first prime minister. Prominent poet-intellectual Faiz Ahmed Faiz was suspected of involvement. In 1980, a plot by Maj. Gen. Tajammul Hussain Malik to assassinate Zia-ul-Haq on Pakistan Day on March 23, 1980 was exposed and thwarted. In 1995, a coup attempt against the government of Benazir Bhutto led by Maj. Gen. Zahirul Islam Abbasi with the support of Islamic extremists was foiled. An alleged coup attempt planned by Mustafa Khar during his exile during General Zia ul Haq's reign was thwarted beforehand due to Seth Abid playing double agent and informing the military about the plot. Allegedly, some disgruntled army officers were provided details of a safe house where weapons procured from India directly by Mustafa Khar after negotiating with an Indian agent in their London High Commission. This has been discussed in great length and detail by Tehmina Durrani in her award-winning book 'My Feudal Lord' where she admits to playing a passive role under duress of her then husband Mustafa Khar.
Operation Fair Play went ahead … as the clock struck midnight [on 4 July 1977] ... [Later,] General Zia [told Bhutto] that Bhutto along with other political leaders of both the ruling and opposition parties would be taken into what he called 'protective custody'.
Zia-ul-Haq, however, chose not to abrogate the 1973 Constitution. Rather, Zia's government suspended the operation of the Constitution and governed directly, through the promulgation of martial law regulations … Between 1977 and 1981 Pakistan did not have legislative institutions.