general Shen Youzhi, Xiao forced Emperor Shun to yield to throne and crowned himself Emperor Gao of Southern Qi, thus ending the Liu Song dynasty. Southern Qi (479–502) Though distantly related, the Southern Qi and the following Liang dynasty were members of the Xiao (蕭) family from Lanling (蘭陵, in modern Cangshan County, Shandong). Because Emperor Gao had a low social standing, he earned the disdain of nobility. His style of governance was similar to the early style of the Liu Song dynasty and was very economical. He died in the fourth year of his reign and his heir, who was only 13 years younger than him, succeeded him as Emperor Wu of Southern Qi. Emperor Wu made peace with the Northern Wei, content to protect his borders. This period of peace was known as Yongming Administration (永明之治). He also used government secretaries (典簽官) appointed with provincial governors and members of the imperial clan to monitor them. The short reigns of Emperor Wu's grandsons, Xiao Zhaoye and Xiao Zhaowen (his first son predeceased him), were dominated by Xiao Luan, Emperor's Wu's first cousin. He killed them in turn and crowned himself as Emperor Ming of Southern Qi. Using the government secretaries, he slaughtered all the sons of Emperors Gao and Wu. Emperor Ming soon became very ill and started following Daoism, changing his whole wardrobe to red. He also passed an edict making officials try to find whitebait (銀魚). He died in 498 and was succeeded by his son Xiao Baojuan, who killed high officials and governors at whim, sparking many revolts. The final revolt in 501 started after Xiao Baojuan killed his prime minister Xiao Yi, leading his brother Xiao Yan to revolt under the banner of Xiao Baojuan's brother who was declared Emperor He of Southern Qi. Xiao Baojuan was killed by one of his generals during the siege of his capital at Jiankang, and after a short puppet reign by Emperor He, Xiao Yan overthrew the Southern Qi and established the Liang dynasty. Liang (502–557) Emperor Wu was economical, worked hard at governing, and cared for the common people. His early reign was known as Reign of Tianjian (天監之治). The Liang dynasty's military strength gradually surpassed the strength of the Northern Wei, who suffered internal strife due to their policy of sinicization. In 503, the Northern Wei invaded but were defeated at Zhongli (modern Bengbu). Emperor Wu