 Muhammad Karam Shah al-Azhari also served as a justice of the Supreme Court of Pakistan until his death in 1998 and had served on its Shariat Bench.He became a justice of the Federal Shariat Court, when it was first established in 1981.Muhammad Karam Shah al-Azhari died on 7 April 1998 after being ill for nearly a year.