In 1856 a Muslim Sultanate was founded in Yunnan, the southwestern Chinese province that borders Burma. In 1873, seventeen years later, this Sultanate was annihilated. The Muslim inhabitants of Yunnan are known as the Panthays.
There are several versions concerning Muslim origins in Yunnan. A tradition held by the Panthays themselves tells that the Emperor of China requested the Prophet Mohammed to send some Muslims to help him to get rid of evil spirits. The Prophet sent him 360 men, with whose aid the evil spirits were routed. The Arabs were welcomed with great honour and were allowed to settle near the capital. In course of time their numbers increased to such an extent that the Imperial Government was disturbed. The Muslims were therefore dispersed to the border areas of the Empire and resettled there. This account was related to the British mission which visited the Panthay Sultanate, by the Governor of the town of Momien. A very similar Chinese version tells of a Muslim army, several thousand strong, which came to the rescue of the Emperor of China at his request. After quelling the rebellion, the Muslims feared to return home, because during their long sojourn abroad they had been polluted by pork and other prohibited things, and decided to remain in China. Eventually they were sent to Yunnan and other places and became loyal subjects of the Emperor.