In 1540 an Afghan, Sher Shah Suri, took over the reins of Uttar Pradesh after defeating the Mughal king Humanyun. Sher Shah and his son Islam Shah ruled Uttar Pradesh from their capital at Gwalior. After the death of Islam Shah Suri, his prime minister Hemu became the "de facto" ruler of Uttar Pradesh, Bihar, Madhya Pradesh, and the western parts of Bengal. He was bestowed the title of "Vikramaditya" at his coronation in Purana Quila in Delhi. Hemu died in the Second Battle of Panipat, and Uttar Pradesh came under Emperor Akbar's rule. Akbar ruled from Agra and his newly established city, Fatehpur Sikri. He was succeeded by his son Jahangir.