Upon hearing these words, Liu Bei's mind cleared and he bowed, saying, 'Your words, Master, are like parting the clouds to see the sun. Although I am shallow in talent and weak 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.
After Zhuge Liang came forth, Liu Bei treated him with great respect, eating and sleeping together with him. Guan Yu and Zhang Fei were displeased to see Liu Bei honoring a commoner so highly.
Liu Bei said, 'My obtaining Kongming is like a fish obtaining water. Say no more.'
At that time, Cao Cao sent Xiahou Dun, Li Dian, and Yu Jin with 100,000 troops to attack Xinye. Liu Bei was worried, and Kongming said, 'We can lead troops to meet them.'
Liu Bei was overjoyed and wanted to muster troops, but Kongming said, 'My lord need not worry; I have a plan for deploying the troops.' He then arranged the forces, ordering Zhao Yun to lead 1,000 troops to Bowang, feign defeat, and lure the enemy; Guan Yu and Zhang Fei each led 1,000 troops to ambush in the valleys on left and right. He also ordered Guan Ping and Zhou Cang each to lead 500 troops to set fire behind the enemy.
Upon hearing the orders, Guan Yu and Zhang Fei thought little of them. Zhang Fei said, 'Military advisor, such petty schemes, why must we top generals personally carry them out?'
Kongming said, 'The battlefield is unpredictable; I hope the generals will follow the plan.' He then handed his sword to Liu Bei, saying, 'If anyone disobeys the orders, my lord may execute them with this sword.' The two dared not speak further and reluctantly accepted the orders.
Xiahou Dun underestimated the enemy and rashly advanced, chasing Zhao Yun to Bowang Slope. Suddenly, the sound of drums and horns arose, and the ambushing troops emerged in full force. Guan Yu and Zhang Fei attacked from both sides, and Xiahou Dun was greatly alarmed. Then, seeing fires break out in his rear, he realized he had fallen into a trap and fled in panic. Countless Cao troops were killed or wounded. In this battle, Kongming used troops for the first time and achieved a great victory, and Guan Yu and Zhang Fei began to respect him.
When Cao Cao heard that Xiahou Dun had been defeated at Bowang, he flew into a rage, personally led a grand army of 300,000, and swore to capture Liu Bei.
Hearing that Cao Cao had personally led the expedition, Liu Bei was deeply worried and fearful. Kongming smiled and said, 'Though the Chancellor's troops are many, why fear them? I have a plan to repel the enemy.'