In 1739, Persian adventurers raided India and ransacked Delhi, marking the end of any unified Mughal state, and by the beginning of the 19th century India was ripe for conquest. The 19th and last Mughal emperor, Bahadur Shah II, was deposed by the British in 1858, and the British Raj replaced the Mughal dynasty.