Bahadur Shah Zafar died in Rangoon, present-day Yangon in Myanmar.
After the Revolt of 1857 failed, the British held Bahadur Shah Zafar responsible for supporting the rebellion. He was tried and found guilty, then exiled from India along with a few family members. He was sent to Rangoon in British-ruled Burma in 1858.
He spent his last years in confinement there, far from Delhi, and died in 1862 at the age of 87. His burial site in Rangoon is now known as the Bahadur Shah Zafar Dargah, and his exile marks the formal end of the Mughal dynasty in India.