和帝
Xiao Yan had his eyes on the throne, and while ostensibly preparing the capital to welcome Emperor He back as the emperor, was preparing to force Emperor He to yield the throne to him. As part of his preparation, he began to execute Emperor He's brothers. Xiao Baoyin's eunuch Yan Wenzhi (顏文智) and attendant Ma Gong (麻拱) therefore plotted to try to save the 15-year-old prince's life. They prepared for a boat on the Yangtze River, and then dug a hole on the wall during the middle of the night, to allow Xiao Baoyin to escape despite guards that Xiao Yan had put around his mansion. After hiding and traveling, Xiao Baoyin eventually reached the border city of Shouyang (壽陽, in modern Lu'an, Anhui), which Northern Wei had captured from Southern Qi in 500. Emperor Xuanwu of Northern Wei welcomed Xiao Baoyin as an honored guest, and after Xiao Yan seized the throne from Emperor He later in 502 (establishing Liang Dynasty as its Emperor Wu), considered using Xiao Baoyin as a tool to conquer Liang. Publicly, Liang declared that Xiao Baoyin had been caught plotting treason and had been executed.