Now that Zhuge Liang had pacified Shu, to eliminate future trouble he resolved to march south and bring peace to the people. The great army set out from Chengdu and crossed the Lu River. The Barbarian King Meng Huo, hearing that the Shu army had arrived and not knowing its true strength, gathered a hundred thousand barbarian troops to confront the Shu army at Pan Snake Valley. Zhuge Liang ordered Zhao Yun and Wei Yan to feign defeat, luring Meng Huo deep into their territory. Believing his plan had succeeded, Meng Huo pressed his attack fiercely, only to have ambush troops suddenly spring from both flanks, cutting off his retreat. Meng Huo fought desperately but was overwhelmed and finally captured alive. Bound and brought before the tent, Zhuge Liang untied him, offered him wine to calm his shock, and asked, 'Do you now submit?' Meng Huo was indignant and said boldly, 'My people have lived in the Southern lands for generations, never having contended with you. Now, because I am unfamiliar with the treacherous tactics of Han soldiers, I was lured into a trap and captured—my heart is not convinced!' Zhuge Liang smiled and said, 'I will release you now. Do you dare to fight again?' Meng Huo replied, 'If you capture me again, then I will submit!' Zhuge Liang then let Meng Huo go. The generals all asked, 'Premier, you captured him only to release him—why is that?' Zhuge Liang said, 'I want to win his heart, not merely seek a momentary victory. The aim is to make the Southern people never rebel again. If they do not submit from the heart, they will become a source of future trouble. This is the meaning of my seven captures and seven releases.'
After being released, Meng Huo kept his word and gathered the barbarian kings again, planning to use a feigned surrender to attack the Shu army. But Zhuge Liang had already prepared for this. He ordered Ma Dai to feign defeat and lure them in, while Zhao Yun and Wei Yan set up ambushes to encircle them. Meng Huo was captured alive for the second time. Zhuge Liang asked, 'Do you now submit?' Meng Huo angrily replied, 'I am the Barbarian King—how could I submit? This is all due to your soldiers' trickery; I have not personally fought you!' Zhuge Liang released him again. After returning, Meng Huo still refused to reform. He invited King Duosi and set up poisoned arrows and miasma at the Poison Springs to block the Shu army. Zhuge Liang personally reconnoitered, found the antidote, and only then could the Shu army cross. Later, Meng Huo ordered his younger brother Meng You to feign surrender, intending to raid the camp at night. But Zhuge Liang saw through the plan and turned it against them, capturing Meng Huo for the third time. Meng Huo still refused to submit, saying, 'Though I have been captured three times, it is all because I fell for your schemes, not because I was defeated in battle!' Zhuge Liang smiled and said, 'I wish to win your heart. Why are you so stubborn?' So he released him again.