Answer
Cao Wei was the rival state that Shu Han fought against during the Northern Expeditions. These expeditions were a series of military campaigns launched by Shu Han, one of the Three Kingdoms of China, against Cao Wei, the dominant power in northern China. The goal of the expeditions was to conquer Cao Wei and unify China under Shu Han's rule.