The Sui dynasty recaptured the area and established a new Liaodong Commandery in what is now modern Shenyang. In 645, the Tang sent forces to fight against Koguryo and they captured Xuantucheng and Gaimoucheng. Soon after, Liaodong was administratively reorganized and enjoyed nearly 250 years of stability and development.[16]