Ibrahim Lodi become the Sultan of Delhi in 1517. He was the successor of Sikandar Lodi. He was the last ruler of the Lodi dynasty; he reigned from 1517 to 1526. He was defeated by Babur in the first Battle of Panipat. Lodi dynasty was founded by Bahlul Khan Lodi when he replaced the Sayyid dynasty.