The Mughal Emperor during the 1857 revolt in India was Bahadur Shah II (Bahadur Shah Zafar) who was the 19th and the last Mughal Emperor.
The 1857 revolt was a very major rebellion against the rule of the British East India Company, which functioned as a sovereign power on behalf of the British Crown.
The Revolt of 1857 or the Indian Mutiny was originated due to the British policy of expansion through the Doctrine of Lapse and direct annexation.
Alamgir II was the 14th Emperor of the Mughal dynasty who ruled between 1754 to 1759 and he was succeeded by Shah Jahan III.
Akbar Shah II was the predecessor of Bahadur Shah Zafar and he was the 18th Emperor of the Mughal dynasty who ruled between 1806 to 1837.
Shah Alam II was the 16th Mughal Emperor who ruled between 1760 & 1806.