It is said that after Zhuge Liang pacified Shu, in order to eliminate future troubles, he resolved to launch a southern campaign to pacify the local tribes. The main army set out from Chengdu, passing by the Lushui River. When the barbarian king Meng Huo learned of the Shu army's arrival, unaware of the Han army's true strength, he gathered one hundred thousand barbarian troops and faced the Shu army at Panshe Valley. Zhuge Liang ordered Zhao Yun and Wei Yan to feign defeat, luring Meng Huo to advance deep into the trap. Meng Huo, believing he had succeeded, charged forward fiercely, but unexpectedly, ambush troops from both flanks suddenly emerged, cutting off his retreat. Meng Huo fought hard but could not hold out and was eventually captured alive. Bound and brought before the tent, Zhuge Liang untied him, offered wine to calm his shock, and asked, 'Do you now submit?' Unyielding, Meng Huo said haughtily, 'My family has lived in the Southern lands for generations and never fought against you. Now, because I am unfamiliar with the Han army's deceitful tactics, I was lured into a trap and captured. My heart is truly unconvinced!' Zhuge Liang smiled and said, 'I will release you to return now. Do you dare to fight again?' Meng Huo replied, 'If you capture me again, then I will submit!' Zhuge Liang then released Meng Huo and let him go. All the generals asked, 'Prime Minister, you captured him and then released him. Why?' Zhuge Liang said, 'I wish to win over his heart, not pursue a momentary victory. It is to ensure that the southerners will never rebel again. If they do not submit willingly, they will surely become a future menace. This is my intent behind the seven captures and seven releases.'
After being released, Meng Huo did not break his word and again gathered the various barbarian kings, planning to attack the Shu army with a feigned surrender ruse. However, Zhuge Liang was already prepared, ordering Ma Dai to feign defeat and lure the enemy, while Zhao Yun and Wei Yan laid an ambush to encircle them. Meng Huo was captured alive for the second time. Zhuge Liang asked, 'Do you now submit?' Angrily, Meng Huo said, 'I am the barbarian king. How could I submit? All this is due to your army's deceit. I have not yet had a proper battle!' He was released again. After returning, Meng Huo still did not repent. He invited King Duosi and, at the poisonous spring wasteland, set up poisoned arrows and miasma to block the Shu army. Zhuge Liang personally scouted and found the antidote, allowing the Shu army to cross. Later, Meng Huo ordered his younger brother Meng You to feign surrender, intending to raid the camp at night. However, Zhuge Liang saw through the plan and turned it against them, capturing Meng Huo for the third time. Meng Huo still did not submit, saying, 'Although I have been captured three times, it is all because I fell for your tricks. It is not due to failure in battle!' Zhuge Liang smiled and said, 'I wish to win over your heart. Why are you so obstinate?' He then released him again.