who established the first afghan dynasty in india
Lodi dynasty The Lodi dynasty (or Lodhi) was an Afghan[1]. dynasty that ruled the Delhi Sultanate from 1451 to 1526. It was the last dynasty of the Delhi Sultanate, and was founded by Bahlul Khan Lodi when he replaced the Sayyid dynasty.[2][1]
Mughal emperors In the next decades, the Afghans, Sikhs, and Marathas battled against each other and the Mughals, only to prove the fragmented state of the empire. The Mughal Emperor Shah Alam II made futile attempts to reverse the Mughal decline, and ultimately had to seek the protection of outside powers. In 1784, the Marathas under Mahadji Scindia won acknowledgement as the protectors of the emperor in Delhi, a state of affairs that continued until after the Second Anglo-Maratha War. Thereafter, the British East India Company became the protectors of the Mughal dynasty in Delhi.[14] After a crushed rebellion which he nominally led in 1857-58, the last Mughal, Bahadur Shah Zafar, was deposed by the British government, who then assumed formal control of a large part of the former empire,[7] marking the start of the British Raj.