Kingdom of Dali
Nasr al-Din was of Central Asian origin, being a Muslim Khwarezmian from Bukhara. His father was the prominent leader Sayyid Ajjal Shams al-Din Omar. When Genghis Khan attacked the city during the war between the Khwarizmi shah and the Mongols, Sayyid Ajjal Shams al-Din Omar's family surrendered to him. Sayyid Ajjal served the court of the Mongol Empire. Later, Sayyid Ajjal was in charge of Imperial finances in 1259, sent to Yunnan by Kublai Khan after conquering the Kingdom of Dali in 1274.