Sensing that his end was near, the First Ruler ordered someone to summon Zhuge Liang, Zhao Yun, and other key ministers to the Yong'an Palace in Baidi City. Upon hearing the news, Zhuge Liang traveled day and night to arrive. When the First Ruler saw Liang, he struggled to rise; Liang knelt prostrate before the couch. The First Ruler patted his back, tears streaming down his face, and said, "I have shared hardships with you, and it has been my fortune to meet you. Now, unfortunately, I must part from you early, and entrust affairs to you. You may assist the Crown Prince; if the heir can be aided, then aid him; if he proves unworthy, you may take the throne in Chengdu!"
Zhuge Liang wept, kowtowed, and said, "Your servant dares to exhaust all his strength and offer his utmost loyalty to repay Your Majesty's grace of knowing and employing me! I will bend my back to the task until my dying day!"
The First Ruler then summoned Zhao Yun to his couch, took his hand, and instructed him: "I have followed you through hardship, but now we shall see each other no more. I hope you will carry on well from beginning to end to protect my son!" When he finished speaking, tears fell like rain. He also ordered Zhuge Liang to write an imperial edict to be given to the Crown Prince Liu Shan. That night, the First Ruler passed away in Yong'an Palace at the age of sixty-three. Truly: He set out to campaign but died before achieving victory, often causing heroes to soak their sleeves with tears. Zhuge Liang then supported the Crown Prince Liu Shan in ascending the throne, and the era name was changed to Jianxing.