Khwarazmian dynasty
After Tekish's death, the power of the Khwarazmian dynasty in western Iran collapsed and all his former vassals rebelled. Muhammad II, was not able to reconquer lost Khwarazmian territory since he was busy in the east, which gave Ardashir the opportunity to reconquer Damghan, Firuzkuh, Folul and Ustunawand. When the Ghurid Sultan Mu'izz al-Din Muhammad invaded Khwarezm in 1204, he sent a delegate to Ardashir, who agreed to recognize his authority. However, Mu'izz al-Din Muhammad was himself shortly defeated and expelled from Khwarezm in 1205. Ardashir shortly died himself. About the same time, his heir Sharaf al-Muluk died, and the succession passed to another son, Rustam V, who was freed from prison and was brought to the throne at Amol.