In the summer of 364 BC, Wei Huiwang, the monarch of Wei, moved his capital from Anyi (now Xiaxian County, Shanxi Province) to Daliang, so Wei Huiwang was also called Wang Hui, the king of Liang, and all the six emperors from Wei Xiangwang to Wei Wangjia took Daliang as the capital of Wei for 136 years, which is why Wei was sometimes recorded as the state of Liang.
In the third year of Wei Dynasty (the first 225 years), the king of Qin sent Wang Ben to lead an army to surround Daliangcheng, and irrigated it from the gap for three months. Daliangcheng was broken, Wei had no choice but to open the city, Wei perished, and Daliangcheng no longer existed. Kaifeng county is in Qin, and Chenliu county is in Han.
Girder is sometimes called the name of Kaifeng area. For example, in the Five Dynasties, some people called Kaifeng, the capital city at that time, as a girder, and in the Northern Song Dynasty, some people used this habit to call Kaifeng as a girder, and combined the two ancient names of Bianhe and Liang in Kaifeng water system to call Kaifeng Bianliang, but they were not official place names at that time.
During the Warring States period, Wei's territory included parts of Shaanxi, Shanxi, Hebei and Henan, and occupied the Yellow River valley with the most developed culture and agriculture at that time. During the Warring States Period, it was a first-class power in China. In order to compete for the Central Plains and realize its ambition, Anyi, located in Xia County, Shaanxi Province, was not conducive to Wei's expansion in the Yellow River basin, so the motive of planning to move the capital was born.