Emperor Wu of Liang () (464 – 12 June 549), personal name Xiao Yan (蕭衍), courtesy name Shuda (叔達), childhood name Lian'er (練兒), was the founding emperor of the Chinese Liang dynasty, during the Northern and Southern dynasties period. His reign, until its end, was one of the most stable and prosperous among the Southern dynasties. He came from the same Xiao clan of Lanling (蘭陵蕭氏) that ruled the preceding Southern Qi dynasty, but from a different branch. Emperor Wu established universities and extended the Confucian civil service exams, demanding that sons of nobles (士族) study. He was well read himself and wrote poetry and patronized the arts. Although for governmental affairs he was Confucian in values, he embraced Buddhism as well. He himself was attracted to many Indian traditions. He banned the sacrifice of animals and was against execution. It was said that he received the Buddhist precepts during his reign, earning him the nickname The Bodhisattva Emperor. The Emperor is the namesake of the Emperor Liang Jeweled Repentance (梁皇寳懺), a widely read and major Buddhist text in China and Korea. At the end of his reign, his unduly lenient attitude towards his clan's and officials' corruption and lack of dedication to the state came at a heavy price; when the general Hou Jing rebelled (侯景之亂), few came to his aid, and Hou captured the imperial capital Jiankang, holding Emperor Wu and his successor Emperor Jianwen under close control and plunging the entire Liang state into anarchy. After Emperor Wu was imprisoned, he was thirsty and asked Hou for honey, but Hou refused to give it to him. After shouting several times, the Emperor supposedly died of hunger and thirst. Background Xiao Yan was born in 464, during the reign of Emperor Xiaowu of Liu Song. His father Xiao Shunzhi (蕭順之), who claimed ancestry from the great Han Dynasty prime minister Xiao He, was a distant cousin of the Liu Song general Xiao Daocheng, and was part of Xiao Daocheng's close circle of advisors in Xiao Daocheng's eventual seizure of the Liu Song throne and establishment of Southern Qi (as its Emperor Gao) in 479. For Xiao Shunzhi's contributions, Xiao Daocheng created him the Marquess of Linxiang and made him a general. Xiao Yan was Xiao Shunzhi's third son, and his mother was Xiao Shunzhi's wife Zhang Zhirou (張至柔), who was also the mother of his older brothers Xiao