During the Three Kingdoms period, a number of military engagements were waged in and around Yangpingguan, including Cao Cao's conquest of Zhang Lu in the Battle of Yangping, Liu Bei's Hanzhong Campaign and the Battle of Mount Dingjun at the nearby Dingjun Mountain.