Prior to be elevated as Senior Justice of the Supreme Court, he briefly tenured as the Chief Justice of the Sindh High Court from 1998 until refusing take oath in opposition to martial law in 1999. He remained a strong critic of President Pervez Musharraf, eventually taking up a leading role in Lawyer's movement in 2007 to oppose President Musharraf. Ultimately, he unsuccessfully ran for the presidential elections held in 2007. Since 2011, he has been active in national politicsthrough Pakistan Tehreek-e-Insaf (PTI) and became a forerunner on PTI platform for the presidential election.