Buhlul Khan Lodi was an Afghan noble. He was a great soldier. When Alam Shah voluntarily abdicated the throne to him, Buhul Khan seized the throne on April 19, 1451 with the support of his minister Hamid Khan. He was the first Afghan ruler of Delhi. Buhlul Khan extended his territories over Gwalior, Jaunpur and upper Uttar Pradesh. He appointed his eldest son Barbak Shah as viceroy of Jaunpur in 1486. Buhlul Khan was confused as to who should succeed him among his sons Barbak Shah and Nizam Shah and grandson Azam-i-Humayun.
Reign of Sikandar Lodi (1489-1517)
After Buhlul Khan's death, his second son Nizam Shah was proclaimed the king, under the title of Sultan Sikandar Shah, on July 17, 1489. He made all efforts to strengthen his kingdom. He extended his kingdom from Punjab to Bihar, and also made a treaty with Alauddin Husain Shah of Bengal. He founded a new town in 1504 (where now the modern city of Agra stands) to control the chiefs of Etawab, Biyana, Koli, Gwalior and Dholapur. He was also a good administrator. He was kind to his subjects. He died on November 21 1517.