After the Hui rebels took control of Dali, Du Wenxiu was proclaimed as their generalissimo on 23 October 1856, he then ordered the repairing of the city's main mosque & the construction of 5 new mosques. To revitalize Islamic education in Yunnan Du Wenxiu established Islamic Madrassas, promoted the use of the Arabic language among the Hui & printed the first copy of the Quran in China. The Sultanate's bureaucracy employed Arabic as the preferred language for communication among the Hui elite and the preferred language for foreign diplomatic relations. When the first British envoys arrived in Yunnan from Burma they were presented with documents entirely in Arabic and had to wait several days for it to be translated into Chinese. Instead of wearing
queues as mandated by the Qing the male subjects of Sultanate let their hair grow long. And the Qing referred to the rebels as "long-haired rebels (changfa Huijei)". The Dali regime used White Banners. A state proclamation sent to the
Muslims of Lhasa in the early 1860s (by way of Hui caravan traders) justified the rebellion as a righteous response to treachery by idolaters. The declaration was written in Arabic and was filled with Qur'anic and Islamic metaphors. It described the Pingnan rebellion using Islamic terminology:"The cause of the dispute was that the Idolaters and their chiefs assembled together to kill the Muslims and began to insult their religion.... Having abandoned every hope of life, we fought with the Idolaters and God gave us the victory.... [The ruler's] name is Sadik, otherwise called Suleiman. He has now established Islamic Law. He administers justice according to the dictates of the Qur'an and their traditions. Since we have made him our Imam we have been by the decree of God, very victorious.... The Ministers and chiefs under our Imam are as single-hearted as Abu Bakr and as bold as Ali. No one can face them in battle. They are imperious to the Infidel but meek to the Muslim. The metropolis of Infidelity has become a city of Islam!"The Dali Sultanate used Imperial Chinese Symbols & challenged the Qing by using Ming era Imagery. According to David G. Atwill: "The regime reflected the strong interethnic ties of the Hui with the Han and of the Yi with predominantly Han-Islamic imagery and a heavily indigenized presence in its institutions and rule." Du Wenxiu cited the example of the
Nanzhao Kingdom, as proof for the feasibility of an Independent Yunnan based government:"if we cannot realize far-reaching permanent victory, we can still achieve a smaller, more remote success like that of the Nanzhao Kingdom, which lasted eight hundred years".The power of the Hui State between the years 1863-68 was described by the French missionary Father Ponsot: "Since the Hui occupied Dali they have become consistently stronger and more or less the masters of the land. They control almost all the towns around Zhongdian, Heqing and Lijiang extending almost up to Tibet, land of the lamas."Areas under rule of the Dali Sultanate were widely considered to be far safer and less corrupt than the areas under imperial control. European travelers observed that a "calm tranquility reigned over this country". Traders "lauded the security of the White banner [Dali-controlled] territory" and locals attributed the presence of prosperous trade to Du Wenxiu's efforts to "trade as much as possible, both by the imposition of light duties and a rigorous administration of justice." The Dali government created policies to encourage locals to protect trade caravans and ordered officials to guard the main passes into Yunnan and to provide free lodging to traders. Du Wenxiu himself set up a trading company in Burma and also established two cotton trading bureaus in
Ava, one of them operated by his sister. Religious instructions called upon Yunnanese Muslims and traders to not contradict Islamic Law: Islam, Confucianism and Tribal pagan animism were all legalized and "honoured" with a "Chinese-style bureaucracy" in Du Wenxiu's sultanate. A third of the sultanate's military posts were filled with Han Chinese, who also filled the majority of civil posts. == Defeat and legacy ==