梁武帝
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.