When Liu Bei heard this, he suddenly understood and bowed gratefully, saying, 'Sir's words are like clearing the clouds to see the sun. Although I am lacking in talent and shallow in learning, I wish to take you as my teacher.'
Zhuge Liang, moved by his sincerity, agreed to leave the mountain. That year, Zhuge Liang was twenty-seven years old.
Now, after Zhuge Liang had left the mountain, Liu Bei treated him with great honor, eating and sleeping together with him. Guan Yu and Zhang Fei, seeing Liu Bei show such respect to a commoner, were displeased in their hearts.
Liu Bei said, 'My gaining of Kongming is like a fish gaining water. Do not speak further.'
At that time, Cao Cao sent Xiahou Dun, Li Dian, and Yu Jin leading 100,000 troops to attack Xinye. Liu Bei was worried, but Kongming said, 'You may lead troops to meet them.'
Liu Bei was overjoyed and wanted to muster troops. Kongming said, 'Lord, do not worry. I have my own methods for deploying troops.' Then he deployed the troops, ordering Zhao Yun to lead a thousand soldiers to Bowang and feign defeat to lure the enemy; Guan Yu and Zhang Fei each led a thousand soldiers to ambush in the valleys on the left and right. He also ordered Guan Ping and Zhou Cang each to lead five hundred soldiers to set fires behind the enemy.
When Guan Yu and Zhang Fei heard the orders, they felt contempt in their hearts. Zhang Fei said, 'Military Advisor, with such a small scheme, why must we, the senior generals, personally act?'
Kongming said, 'The battlefield is unpredictable. I hope the generals will act according to the plan.' He then gave his sword to Liu Bei, saying, 'If anyone disobeys orders, my lord may execute them with this sword.' The two dared not speak again and reluctantly accepted the orders.
Xiahou Dun belittled the enemy and rashly advanced, pursuing Zhao Yun to Boweng Slope. Suddenly, the sound of drums and horns arose, and all the ambushing troops emerged. Guan Yu and Zhang Fei attacked from two sides. Xiahou Dun was greatly startled. Then, seeing fires starting in the rear army, he realized it was an ambush and fled in panic. Countless Cao soldiers were killed or wounded. In this battle, Kongming used troops for the first time and won a great victory, and Guan Yu and Zhang Fei began to respect him.
Now, when Cao Cao learned that Xiahou Dun had been defeated at Bowang, he was furious, personally led a great army of 300,000, and swore to capture Liu Bei.
When Liu Bei heard that Cao Cao was personally leading the expedition, he was deeply worried and fearful. Kongming smiled and said, 'Though the Prime Minister's troops are many, why fear them? I have my own strategy to repel the enemy.'