After the Ming conquest of Yunnan in February 1382 the Mong Mao under Si Lunfa decided to submit to Ming authority, and was granted the tusi title of Pacification Commissioner of Pingmian Pacification Commission. In August 1384 Si Lunfa sent a tribute mission to the Ming court surrendering the Yuan seal of commission. As a result he was promoted to Luchuan-Pingmian Pacification Commission with authority over military and civilian affairs. However Si Lunfa was not content with his position and in January 1386 he led a force of over 100,000 in an attack on Jingdong prefecture.
Battle
Initially Feng Cheng was appointed the command of a division to suppress the revolt, but due to heavy fog and bad weather they were forced to retreat. The expedition suffered one casualty, the thousand-commander Wang Sheng. In May 1387 the emperor dispatched the Marquis of Xiping, Mu Ying, with the task of restricting travel to Pingmian in order to isolate them. In February 1388 Si Lunfa enlisted the aid of several other tribes and amassed a force under Dao Silang to attack the Moshale stockade and captured it. Mu Ying dispatched Ning Zheng to recapture Moshale. The Ming forces defeated the rebels, who suffered more than 1,500 casualties. However Si Lunfa was able to recuperate and enlisted most of the other tribes in southwestern Yunnan to his cause, amassing a force as large as 300,000 by some estimates as well as 100 war elephants, and attacked Dingbian county. Mu Ying mobilized an additional 30,000 soldiers from other regions and met Si Lunfa's army in battle. The Ming vanguard sent out a contingent of light cavalry 300 strong to provoke the rebel army to give chase. The Mong Mao took the bait and met them with 10,000 men and 30 elephants, but were repulsed and forced to retreat with heavy casualties. The next day Ming and Shan troops returned to the field. Ming soldiers equipped with guns and fire arrows were arrayed in three lines. Mu Ying explained that this was so that "when the elephants advance, the front line of guns and arrows will shoot all at once. If they do not retreat, the next line will continue this. If they still do not retreat, then the third line will continue this." When the armored war elephants broke into a run, charging the Ming lines, the Ming forces stood their ground, "shooting arrows and stones, the noise shaking the mountains and vallies. The elephants shook with fear and ran." Ming forces pursued the retreating rebels right up to their stockade and set their encampment on fire. The fighting continued at the forefront and the intensity of the battle was such that the left wing of the Ming army started to retreat. Seeing this from his vantage point, Mu Ying sent orders for the left wing commander to be executed. Alarmed by this development, the commander rushed forward to join battle out of fright, and his troops followed him. According to the Ming Shilu, half the elephants were killed while 37 were captured, at least 30,000 were killed, and 10,000 were captured.
Aftermath
Si Lunfa was forced to accept Ming suzerainty while the Ming recognized Mong Mao as a semi-independent tusi. In addition the Ming agreed to aid Mong Mao against the Kingdom of Ava and other rivals in Burma.