Before revision: The Mughal rule persisted until the mid-nineteenth century, ending in 1737 with the death of the sixth Mughal emperor , Aurangzeb (an account also cited Nadir Shah 's invasion as the cause of the empire's demise) .
After revision: The Mughal rule persisted until the mid-nineteenth century, ending in 1857 after the of the Indian Rebellion of 1857, the last Mughal emperor Bahadur Shah Zafar was exiled by the British to Myanmar where he spent the rest of his life in prison .