Pervez Musharraf takes power in Pakistan from Nawaz Sharif through a bloodless coup.

The 1999 military takeover in Pakistan was a bloodless coup d'tat initiated by the military staff at the Joint Staff HQ working under Chairman of the Joint Chiefs of Staff Committee General Pervez Musharraf. The instigators seized control of the civilian government of the publicly elected Prime Minister Nawaz Sharif on 12 October 1999. On 14 October, General Musharraf, acting as the country's Chief Executive, issued a controversial provisional order that suspended the Constitution of Pakistan.

Martial law was declared due to the breakdown of civil-military relations. Tensions between the Sharif administration and joint chiefs chairman General Musharraf reached a breaking point. In an attempt to maintain civilian control over the military, Lieutenant-General Ziauddin Butt, then Director of the ISI, was hastily approved for the appointment of the army chief, but the decision was opposed by senior members of the Joint Staff HQ, who refused to follow the new chain of command, deciding instead to direct the Military Police to detain General Butt and prevent his taking control of the military.The pace of the coup startled political observers; within 17 hours of Sharif's attempt to relieve General Musharraf, army commanders took control of all key government institutions throughout the country and placed Sharif and his administration, which included his brother, under house arrest. Military police took control of the state broadcaster, radio and the entire critical communications infrastructure, and announced that Sharif had been dismissed.The Supreme Court of Pakistan led by Chief Justice Saeeduzzaman Siddiqui validated the martial law under a "doctrine of necessity" but limited its legality to three years.:118 Meanwhile, Sharif was tried by the Judge Advocate General Court and convicted of endangering the lives of all passengers aboard the aircraft carrying Musharraf,:5657 with the military court upholding the decision. When the decision was announced, it sparked fury in the conservative PML(N) but was welcomed by many of its political opponents. In 2000, the Supreme Court accepted arguments that the coup was a "violation of the constitution". However, acting Chief Justice Ershad Hasan later argued of the constitutionality of the coup.:119120:112115On 10 December 2000, Musharraf unexpectedly issued a pardon to Nawaz Sharif to be flown to Saudi Arabia.:167168:7374 In 2016, Musharraf later confessed in an interview given to Kamran Shahid of Dunya that "he pardoned Sharif from life imprisonment on the request of King Abdullah and Rafic Hariri."In 2001, Musharraf issued the executive decree and eventually forced President Rafiq Tarar to resign in order for Musharraf to assume the presidency. In light of the Supreme Court's verdict, the national referendum was held on 30 April 2002, allowing himself to continue his rule, but was alleged by many (including the Human Rights Commission of Pakistan) to be fraudulent. In 2002, the general elections restored democracy when the Musharraf-backed PML(Q), the libertarians, were able to form a minority government who would later nominate Musharraf for the 2004 presidential elections. In 2007, President Musharraf eventually imposed another martial law by having suspended the populist Chief Justice IM Chaudhry, leveling charges of corruption and misconduct. Unlike the earlier martial law, Musharraf was widely disapproved, inviting mass demonstrations led by Nawaz Sharif, Musharraf eventually resigned in an attempt to avoid impeachment in the Parliament.Sharif was acquitted in 2009 from the 1999 hijacking case and in 2014 acquitted of the money laundering and corruption cases from an accountability court.

Pervez Musharraf (Urdu: پرویز مشرف, romanized: Parvez Muśarraf; born 11 August 1943) is a Pakistani politician and a retired four-star general who became the tenth president of Pakistan after the successful military takeover of the federal government in 1999. He held the presidency from 2001 until 2008, when he tendered his resignation to avoid impeachment.Born in Delhi during the British Raj, Musharraf was raised in Karachi and Istanbul. He studied mathematics at Forman Christian College in Lahore and was also educated at the Royal College of Defence Studies in the United Kingdom. Musharraf entered the Pakistan Military Academy in 1961 and was commissioned to the Pakistan Army in 1964, playing an active role in the Afghan civil war. Musharraf saw action during the Indo-Pakistani War of 1965 as a second lieutenant. By the 1980s, he was commanding an artillery brigade. In the 1990s, Musharraf was promoted to major general and assigned an infantry division, and later commanded the Special Services Group. Soon after, he also served as deputy military secretary and director general of military operations.Musharraf rose to national prominence when he was promoted to four-star general by Prime Minister Nawaz Sharif in 1998, making Musharraf the head of the armed forces. He led the Kargil infiltration that almost brought India and Pakistan to a full-fledged war in 1999. After months of contentious relations between Sharif and Musharraf, Sharif unsuccessfully attempted to remove Musharraf as the army's leader. In retaliation, the army staged a coup d'état in 1999, which allowed Musharraf to take over Pakistan as president in 2001. He subsequently placed Sharif under strict house arrest before launching official criminal proceedings against him.Musharraf initially remained the Chairman of the Joint Chiefs and the Chief of the Army Staff, relinquishing the former position upon confirmation of his presidency. However, he remained the Army Chief until retiring in 2007. The initial stages of his presidency featured controversial wins in a state referendum to grant him a five-year term limit, and a general election in 2002. During his presidency, he advocated for the Third Way, adopting a synthesis of conservatism and socialism. Musharraf reinstated the constitution in 2002, though it was heavily amended within the Legal Framework Order. He appointed Zafarullah Jamali and later Shaukat Aziz as Prime Minister, and oversaw directed policies against terrorism, becoming a key player in the American-led war on terror.Musharraf pushed for social liberalism under his enlightened moderation program and promoted economic liberalisation, while he also banned trade unions. Musharraf's presidency coincided with a rise of overall gross domestic product by around 50%; in the same period, domestic savings declined, and economic inequality rose at a rapid rate. Musharraf's government has also been accused of human rights abuses, and he survived a number of assassination attempts during his presidency. When Aziz departed as prime minister, and after approving the suspension of the judicature in 2007, Musharraf's position weakened dramatically. Tendering his resignation to avoid impeachment in 2008, Musharraf emigrated to London in a self-imposed exile. His legacy as leader is mixed; he saw the emergence of a more assertive middle class, but an open disregard for civilian institutions greatly weakened democracy in Pakistan.Musharraf returned to Pakistan in 2013 to participate in that year's general election, but was disqualified from participating after the country's high courts issued arrest warrants for him and Aziz for their alleged involvement in the assassinations of Nawab Akbar Bugti and Benazir Bhutto. Upon Sharif's re-election in 2013, he initiated high treason charges against Musharraf for implementing emergency rule and suspending the constitution in 2007. The case against Musharraf continued after Sharif's removal from office in 2017, the same year in which Musharraf was declared an "absconder" in the Bhutto assassination case by virtue of moving to Dubai. In 2019, Musharraf was sentenced to death in absentia for the treason charges, although, the death sentence was later annulled by the Lahore High Court.