Orchha was the capital of the Bundela rajas from the 16th century to 1783, when they decamped to nearby Tikamgarh. Bir Singh Deo ruled from Orchha from 1605 to 1627 and built Jhansi Fort. A favourite of Mughal Prince Salim, he feuded with Akbar, who all but ruined his kingdom. In 1605 Prince Salim became Emperor Jehangir, making Bir Singh a powerful figure, and the Jehangir Mahal was built for his visit the following year. When Shah Jahan became emperor in 1627 Bir Singh was once again out of favour; his revolt was crushed by 13-year-old Aurangzeb.