Humayun succeeded Babur as Mughal emperor in 1530 but faced many difficulties consolidating the empire due to resistance from local rulers in India who saw the Mughals as foreigners. He lost much of the empire to Sher Shah Suri by 1540 and had to flee to Persia. Humayun regained control of Delhi and Agra by 1555 after Sher Shah's death but died soon after in 1556. His son Akbar expanded the empire significantly during his reign through both military conquests and diplomatic relations.