<Tr> <Th> 6 </Th> <Th> General Muhammad Zia - ul - Haq (1924--1988) </Th> <Td> </Td> <Td> 16 September 1978 </Td> <Td> 17 August 1988 (died in office). </Td> <Td> </Td> <Td> Military </Td> <Td> Junejo </Td> </Tr> <P> Military rule ended in Pakistan in 1988 after the Death of Muhammad Zia - ul - Haq and the civilian government was restored . There was two periods of Semi-presidential rule, 1988--1993 and 1999--2007 and Parliamentary republic rule 1993--1997 . In 1999 a coup d'état deposed Nawaz Sharif and his government, but the President was still in power until 2001 . The President was elected by Electoral College for a five - year term . In the event of a vacancy the Chairman of the Senate served as Acting President . </P> <Dl> <Dt> Status </Dt> </Dl> <Table> <Tr> <Th_colspan="3"> President </Th> <Th_colspan="3"> Term of office </Th> <Th> Political party </Th> <Th> Prime Minister (s) </Th> </Tr> <Tr> <Th> #</Th> <Th> Portrait </Th> <Th> Name </Th> <Th> Took office </Th> <Th> Left office </Th> <Th> Duration </Th> </Tr> <Tr> <Th> 7 </Th> <Td> </Td> <Td> Ghulam Ishaq Khan (1915--2006) </Td> <Td> 17 August 1988 </Td> <Td> 13 December 1988 </Td> <Td> 4 years, 335 days </Td> <Td> Independent </Td> <Td> No Prime Minister (May 30, 1988 - Dec 1, 1988) Mohtarma Benazir Bhutto (Dec. 2, 1988 - Aug. 6, 1990) Ghulam Mustafa Jatoi (Caretaker) (Aug. 6, 1990 - Nov. 6, 1990) Muhammad Nawaz Sharif (Nov. 6, 1990 - April 18, 1993) Balkh Sher Mazari (Caretaker) (April 18, 1993 - Oct 19, 1993) </Td> </Tr> <Tr> <Td> 13 December 1988 </Td> <Td> 18 July 1993 (Resigned) </Td> </Tr> <Tr> <Th> </Th> <Td> </Td> <Td> Wasim Sajjad (1941--) </Td> <Td> 18 July 1993 </Td> <Td> 14 November 1993 </Td> <Td> 119 days </Td> <Td> Pakistan Muslim League (N) </Td> <Td> Moeen Qureshi (Caretaker) (July 18, 1993 - Oct. 19, 1993) </Td> </Tr> <Tr> <Th> 8 </Th> <Td> </Td> <Td> Farooq Leghari (1940--2010) </Td> <Td> 14 November 1993 </Td> <Td> 2 December 1997 (Resigned) </Td> <Td> 4 years, 18 days </Td> <Td> Pakistan Muslim League (N) </Td> <Td> Mohtarma Benazir Bhutto (Oct. 19, 1993 - Nov. 5, 1996) Malik Meraj Khalid (Caretaker) (Nov. 5, 1996 - Feb. 17, 1997) </Td> </Tr> <Tr> <Th> </Th> <Td> </Td> <Td> Wasim Sajjad (1941--) </Td> <Td> 2 December 1997 </Td> <Td> 1 January 1998 </Td> <Td> 30 days </Td> <Td> Pakistan Muslim League (N) </Td> <Td> Muhammad Nawaz Sharif (Feb. 17, 1997 - Oct. 12, 1999) </Td> </Tr> <Tr> <Th> 9 </Th> <Td> </Td> <Td> Muhammad Rafiq Tarar (1929--) </Td> <Td> 1 January 1998 </Td> <Td> 20 June 2001 (Resigned) </Td> <Td> 3 years, 170 days </Td> <Td> Pakistan Muslim League (N) </Td> <Td> No Prime Minister (Oct 12, 1999 - Nov. 22, 2002) Mir Zafar Ullah Khan Jamali (Nov. 23, 2002 - *) </Td> </Tr> </Table>

Who was the head of state of pakistan in 1947