At the mouth of Qutang Gorge, the dying ruler Liu Bei entrusted his heir to his adviser Zhuge Liang. The hilltop temple recalls this episode from the Three Kingdoms period.