Wuwei, Gansu
In 439, the Northern Wei launched a major attack on Northern Liang, capturing its capital Guzang (modern Wuwei, Gansu) . By 441, the entirety of Northern Liang was under the Wei. Thus, Northern China was unified under Emperor Taiwu, ending the Sixteen Kingdoms era and beginning the Southern and Northern Dynasties era.