<P> While fighting against the local governor of Sindh, Jalal ad - Din heard of an uprising in the Kirman province of southern Iran and he immediately set out for that place, passing through southern Baluchistan on the way . Jalal ad - Din was also joined by forces from Ghor and Peshawar, including members of the Khalji, Turkoman, and Ghori tribes . With his new allies he marched on Ghazni and defeated a Mongol division under Turtai, which had been assigned the task of hunting him down . The victorious allies quarreled over the division of the captured booty; subsequently the Khalji, Turkoman, and Ghori tribesmen deserted Jalal ad - Din and returned to Peshawar . By this time Ögedei Khan, third son of Genghis Khan, had become Great Khan of the Mongol Empire . A Mongol general named Chormaqan sent by the Khan attacked and defeated Jalal ad - Din, thus ending the Khwārazm - Shāh dynasty . </P> <Table> <Tr> <Td> </Td> <Td> Some of this article's listed sources may not be reliable . Please help this article by looking for better, more reliable sources . Unreliable citations may be challenged or deleted . (August 2018) (Learn how and when to remove this template message) </Td> </Tr> </Table> <Tr> <Td> </Td> <Td> Some of this article's listed sources may not be reliable . Please help this article by looking for better, more reliable sources . Unreliable citations may be challenged or deleted . (August 2018) (Learn how and when to remove this template message) </Td> </Tr> <P> Some time after 1235 another Mongol force invaded Kashmir, stationing a darughachi (administrative governor) there for several years, and Kashmir became a Mongolian dependency . Around the same time, a Kashmiri Buddhist master, Otochi, and his brother Namo arrived at the court of Ögedei . Another Mongol general named Pakchak attacked Peshawar and defeated the army of tribes who had deserted Jalal ad - Din but were still a threat to the Mongols . These men, mostly Khaljis, escaped to Multan and were recruited into the army of the Delhi Sultanate . In winter 1241 the Mongol force invaded the Indus valley and besieged Lahore . However, on December 30, 1241, the Mongols under Munggetu butchered the town before withdrawing from the Delhi Sultanate . At the same time the Great Khan Ögedei died (1241). </P>

Who defended the kingdom from the invasions of the mongols