 In 439, the Northern Wei launched a major attack on Northern Liang, capturing its capital Guzang (modern Wuwei, Gansu) .By 441, entire Northern Liang territory was under the Wei.Northern China was now united under Emperor Taiwu's reign, ending the Sixteen Kingdoms era and starting the Southern and Northern Dynasties era.