The Battle of Mount Qi was a military conflict which took place around Mount Qi (祁山; the mountainous regions around present-day Li County, Gansu) between the states of Cao Wei and Shu Han in 231 during the Three Kingdoms period of China. It was also the most vigorous of the five Shu invasions of Wei, resulting in thousands of deaths on both sides. Although Zhuge Liang was able to make significant achievement in the beginning of the battle, the battle finally concluded with a strategic Wei victory due to the insufficient food supply for the Shu Han army. The insufficient food supply was caused by heavy rain and mistakes made by Li Yan. The Shu regent, Zhuge Liang, spent three years recuperating before launching another invasion on Wei in 234.