In the final years of the Northern Wei, natural disasters and human calamities came one after another. The court imposed exorbitant taxes and treated the people like cattle and horses, leaving them in dire straits. At last, the massive Mahayana sect uprising broke out. The southern Liang took the opportunity to launch a northern campaign, but its attempt to build a dam backfired. It lost precious time at a critical moment, allowing the Northern Wei to suppress the uprising. The Huai River dike, built at great cost to the people and the treasury, eventually collapsed. Liang gained not an inch of land, and instead unleashed floods across thousands of miles downstream. More than a hundred thousand households were swept away, countless fields and homes were destroyed, and Emperor Wu of Liang was forced to halt the war and let the people recover.
Liang's withdrawal gave Wei a chance to catch its breath, but the ailing state was too far gone to recover. Gao Zhao, Yu Zhong, and Yuan Cha seized power one after another, and every coup was accompanied by rivers of blood. After Empress Dowager Hu had Yuan Cha executed, she squandered the state's wealth and indulged in debauchery, bringing ruin to the country and turning mother against son. Emperor Xiaoming of Wei was poisoned, prompting Erzhu Rong to march on the capital and bringing about the Heyin Incident.
Afterward, rival warlords rose up, and ceaseless warfare spread across the Central Plains. Liang repeatedly sent armies north, but achieved nothing. Amid the chaos, three formidable warlords emerged: Yuwen Tai, Gao Huan, and Chen Tanxian, each making a name for himself in the turbulent age. In 534, Emperor Xiaowu of Wei fled to the west, and the Northern Wei split in two, forming Eastern Wei and Western Wei. By the time the two Wei dynasties had changed their ruling surnames and Southern Liang had changed hands, Zhou, Qi, and Chen had taken shape. The three states contended for decades, until Zhou destroyed Qi, Sui replaced Zhou, and Sui conquered Chen.