 A peace treaty was signed in 490 with the Emperor Wu.In 502, the Southern Qi general Xiao Yan toppled the Emperor Xiao Baojuan after waging a three years civil war against him.Xiao Yan enthroned in Jiankang to become the Emperor Wu of Liang dynasty.