Pervez Musharraf was a Pakistani military officer and politician who served as the tenth president of Pakistan from 2001 until 2008. He seized power in a 1999 military coup, ousting the elected government of Prime Minister Nawaz Sharif. His presidency was marked by the War on Terror, economic liberalization, and social reforms, alongside significant political controversy. After resigning to avoid impeachment, he lived in self-imposed exile and later faced legal challenges upon his return to Pakistan.