In 1526, Babur a descendant of Genghis Khan and Timur, from the Fergana Valley in modern-day Uzbekistan invaded India, defeated the last Lodhi sultan in the First Battle of Panipat and founded the Mughal Empire that ruled from Delhi and Agra. The Mughal dynasty ruled Delhi for more than three centuries, with a sixteen-year hiatus during the reigns of Sher Shah Suri and Hemu from 1540 to 1556.  Shah Jahan built the seventh city of Delhi that bears his name ''Shahjahanabad'', which served as the capital of the Mughal Empire from 1638 and is today known as the ''Old City'' or ''Old Delhi''.