Ali came to prominence in the 1990s as a litigator and constitutional lawyer. After President Ghulam Ishaq Khan dismissed the government of Prime Minister Nawaz Sharif in 1993, he successfully represented Sharif before the Supreme Court of Pakistan against the dissolution of parliament. The Supreme Court overturned the dismissal, and Sharif was re-elected in 1997. Ausaf was then appointed Advisor to the Prime Minister on human rights. He was appointed Advocate General of Punjab in May 1998, but resigned from his post when General Pervez Musharraf overthrew the Sharif government in a military coup.