Bahadur Shah Zafar (1775-1862) was the last Mughal emperor, ruling from 1837 until 1857 when he was exiled to Rangoon after the Indian Rebellion of 1857. Shah Jahan built the Taj Mahal, Jehangir was his father, and Aurangzeb was the sixth major emperor - none of them were the last rulers.