who was the king of delhi when timur attacked
Timur In 1398, Timur invaded northern India, attacking the Delhi Sultanate ruled by Sultan Nasir-ud-Din Mahmud Shah Tughluq of the Tughlaq Dynasty. He was opposed by Ahirs and faced some reversals from the Jats, but the Sultanate at Delhi did nothing to stop him.[59][60] After crossing the Indus river on 30 September 1398, he sacked Tulamba and massacred its inhabitants.[61] Then he advanced and captured Multan by October.[62]
Shah Alam II After the Battle of Delhi (1803), during the Second Anglo-Maratha War, on 14 September 1803 British troops entered Delhi ending the Maratha rule on the Mughals, bringing Shah Alam, then a blind old man, seated under a tattered canopy, under British protection. The Mughal Emperor no longer had the military power to enforce his will, but he commanded respect as a dignified member of the House of Timur in the length and breadth of the country. The Nawabs and Subedars still sought formal sanction of the Mughal Emperor on their accession and valued the titles he bestowed upon them. They struck coins and read the khutba (Friday sermons) in his name. The Marathas in 1804 under Yashwantrao Holkar tried to snatch Delhi from the British in Siege of Delhi (1804), but failed.