Muhammad Shah amassed an army to attack them, with his son Humayun Khan as the commander-in-chief. While preparations were in progress in Delhi in January 1394, Sultan Muhammad Shah died. His son, Humayun Khan assumed power but was murdered within two months. The brother of Humayun Khan, Nasir-al-din Mahmud Shah assumed power – but he enjoyed little support from Muslim nobility, the wazirs and amirs. The Sultanate had lost command over almost all eastern and western provinces of already shrunken Sultanate. Within Delhi, factions of Muslim nobility formed by October 1394 AD, triggering the second civil war. Tartar Khan installed a second Sultan, Nasir-al-din Nusrat Shah in Firozabad, few kilometers from the first Sultan seat of power in late 1394. The two Sultans claimed to be rightful ruler of South Asia, each with a small army, controlled by a coterie of Muslim nobility. Battles occurred every month, duplicity and switching of sides by amirs became commonplace, and the civil war between the two Sultan factions continued through 1398, till the invasion by Timur. Timur's Invasion The lowest point for the dynasty came in 1398, when Turco-Mongol invader, Timur (Tamerlane) defeated four armies of the Sultanate. During the invasion, Sultan Mahmud Khan fled before Tamerlane as he entered Delhi. For eight days Delhi was plundered, its population massacred, and over 100,000 prisoners were killed as well. The capture of the Delhi Sultanate was one of Timur's greatest victories, as at that time, Delhi was one of the richest cities in the world. After Delhi fell to Timur's army, uprisings by its citizens against the Turkic-Mongols began to occur, causing a retaliatory bloody massacre within the city walls. After three days of citizens uprising within Delhi, it was said that the city reeked of the decomposing bodies of its citizens with their heads being erected like structures and the bodies left as food for the birds by Timur's soldiers. Timur's invasion and destruction of Delhi continued the chaos that was still consuming India, and the city would not be able to recover from the great loss it suffered for almost a century. It is believed that before his departure, Timur appointed Khizr Khan, the future founder of the succeeding Sayyid dynasty, as his viceroy at Delhi. Initially, Khizr Khan could only establish his control over Multan, Dipalpur and parts of Sindh. Soon he started his campaign against the Tughlaq dynasty, and entered