Bahadur Shah II was the nominal head of the Indian Mutiny of 1857. After the suppression of the revolt by the British, he was deposed, tried, and exiled to Rangoon (Burma), marking the end of the Mughal dynasty.