After babur's death his eldest son Humayun ascended the throne at the age of 22. Humayun founded a new city at Delhi called Dinpanash. The remains of Humayun's new city are the walls of the fort which is known today as the Purana Quila. In the ballte of Kanauj (1540), Sher Khan defected Humayun.
From 1540-55 Humayun wandered from place to place in search of shelter. It was during this period that he met and married Hamida. In1542, in the small town of Amarkot in Sindhu, Hamida gave birth to a son, Akbar. Shah of Persia gave them refuge. Humayun was a well educated ruler. He spoke several languages and was interested in mathematics, astronomy and philosophy. It was while he was studying in his library that he had the fall which resulted in his death on January 2,1556 at Delhi. The Mughal School of painting was Founded by Humayun.