Alauddin Alam Shah who ruled the Sayyid dynasty from 1443 CE to 1451 CE was the last ruler of the Sayyid dynasty. It is believed that Alam Shah’s Wazir, Hamid Khan, invited Bahlol Lodhi to take charge of the army which later founded the Lodhi dynasty.