Wei (Chinese: 魏; pinyin: Wèi) was one of the seven major states during the Warring States period of ancient China. It was created from the three-way Partition of Jin, together with Han and Zhao. Its territory lay between the states of Qin and Qi and included parts of modern-day Henan, Hebei, Shanxi, and Shandong. After its capital was moved from Anyi to Daliang (present-day Kaifeng) during the reign of King Hui, Wei was also called Liang (Chinese: 梁; pinyin: Liáng).