Sher Ali was given life imprisonment during the Wahabi movement against the British Raj. He assassinated Lord Mayo, Viceroy of India with a knife on 8th February, 1872. He was hanged on Viper Island now in the Union Territory of Andaman and Nocobar Island.