Xiao Yan, courtesy name Shuda, was born in the Xiao family of Nanlanling and was of the same clan as the Southern Qi royal family. He was erudite and talented. When he was young, he traveled with Shen Yue, Xie Tiao and others to the sect of King Jingling Xiao Ziliang, and was known as the "Eight Friends of Jingling". Qi Emperor Ming served as the governor of Yongzhou and guarded Xiangyang. In 500, his elder brother Xiao Yi was unjustly killed by Xiao Baojuan, the Marquis of Donghun. Xiao Yan raised troops in Xiangyang and supported Xiao Baorong, Nanking Kang. In the following year, he invaded Jiankang and established the Liang Dynasty in 502 with accession following abdication.
In the early days of his reign, he was diligent in political affairs. He began to review official documents, revised laws and regulations, and changed the official rank to eighteen classes in the fourth watch of winter. He established a doctorate in the Five Classics, opened five libraries, recruited children from poor families and awarded officials through examinations. Jiangnan society was stable and prosperous, and culture and academics flourished. In 507, Liang Jun defeated the Northern Wei Dynasty at Zhongli. However, in 514, the Fushan Weir was built to flood Shouyang, but the weir collapsed, causing a huge disaster.
He was a devout believer in Buddhism, stopped drinking and eating, and banned the use of animals in the ancestral temple. He sacrificed his life in Tongtai Temple four times and was redeemed by his ministers with huge sums of money. He was lenient and indulgent towards the children of the clan, and his officialdom was gradually weakened. In 547, he accepted the rebel general Hou Jing of the Eastern Wei Dynasty despite the objections of his courtiers. The following year, Hou Jing rebelled and besieged Taicheng. Taicheng fell in 549, and Xiao Yan was placed under house arrest. He died of illness and starvation in May at the age of eighty-six.
Emperor Wu of Liang Dynasty was erudite and versatile. He was diligent and frugal in the early years of his reign. He revised laws and regulations, established schools, and emphasized culture and education, which brought stability and prosperity to Jiangnan for decades. Liang Dynasty literature, history, and Buddhism all reached the peak of the Southern Dynasties. However, in his later years, he indulged in Buddhism, tolerated the clan and the powerful, neglected the administration of officials, and lax military armaments. He also accepted Hou Jing rashly, which eventually led to the ruin of the country and his death. The prosperity of Jiangnan was destroyed in one day, and the Southern Dynasty never recovered.