Tuyuhun invasion of Gansu

The Tuyuhun invasion of Gansu was a battle between the Tuyuhun Kingdom and the Tang Dynasty in 623. During the battle, the Tang general Chai Shao distracted the Tuyuhun soldiers with an 
erotic dance performed by two dancing girls. While the nomads watched the dance, Chai Shao attacked from the rear and defeated the Tuyuhun. The Tuyuhun suffered more than five hundred casualties over the course of the battle.
Battle.
The Tuyuhun and Tanguts regularly raided Chinese settlements along the western Tang frontier. In 623, the Tuyuhun departed from their homeland in the pastures surrounding Qinghai Lake, known in Mongolian as Kokonur, and invaded Gansu. The Tang general Chai Shao was dispatched to defeat the nomads and prevent further incursions. The Tuyuhun held the higher ground and shot arrows against the encroaching Tang forces.
Chai Shao, in the words of historian Charles Patrick Fitzgerald, "was a general of many, if unorthodox, resources." He devised a decoy by sending two dancing girls and a group of musicians to a small hill near the Tuyuhun camp. The musicians played the pipa, a stringed instrument of foreign origin, while the girls positioned themselves on top of a hill. On the hill, the dancing girls performed an erotic dance in front of the nomads. The attention of the Tuyuhun was diverted entirely towards the girls as the soldiers disbanded their military formation and rushed to the hill for a clearer view of the dance.
Seizing the opportunity, Chai Shao surprised the soldiers who were distracted by the performance, and attacked them in the rear with his cavalry. Over five hundred Tuyuhun soldiers were killed in the ensuing battle, forcing the Tuyuhun's retreat from Gansu. Fitzgerald ends his description of the Tuyuhun defeat with the moral that "it is most unwise, in the midst of battle, to let the mind dwell on the delights of peace."
Aftermath.
Hostilities between the Tuyuhun and Tang continued after the battle. Between 634 and 635, Emperor Taizong conducted a large military expedition against the Tuyuhun led by the general Li Jing. The Tang forces were reinforced with allied Tangut and Turkic soldiers during the invasion. Tuyuhun was defeated, and capitulated to the Tang court as a vassal.