Ahmed took over the office of President after a popular uprising against President Hussain Muhammad Ershad in 1991. Afterwards, he returned to his duties as the Chief Justice following the amendment. Later, he served as the President from 1996 to 2001. During his first time in the Presidential office, he served as Acting President. Later when he again took over the office in 1996 he became the 12th President.