Northern Wei troops, and he distinguished himself under the command of Wang Guangzhi (王廣之). Later that year, when Emperor Ming suspected the general Xiao Chen (蕭諶) of treason and executed him, it was Xiao Yan that he sent to arrest and execute Xiao Chen's brother Xiao Dan (蕭誕) the governor of Si Province (司州, modern southeastern Henan). In 497, with Northern Wei again attacking, Xiao Yan was one of the generals that Emperor Ming sent to aid the embattled Yong Province (雍州, modern southwestern Henan and northwestern Hubei). Even though both he and his commander, Cui Huijing (崔慧景), were subsequently defeated by Northern Wei forces in battle, in 498 Xiao Yan was made the governor of Yong Province and the defender of Yong Province's capital, the important city Xiangyang (襄陽, in modern Xiangfan, Hubei), and he continued in that post after Emperor Ming's death and succession by his son Xiao Baojuan. It was at Xiangyang that Xiao Yan's wife Chi Hui died in 499. Xiao Yan would not take another wife for the rest of his life, although he would have a number of concubines. Civil war against Xiao Baojuan When Xiao Baojuan became Southern Qi's emperor in 498 at age 15, his power was initially curbed by several high-level officials that his father Emperor Ming left in charge—including Emperor Ming's cousins Jiang Shi (江祏) and Jiang Si (江祀), Xiao Baojuan's own uncle Liu Xuan (劉暄), Xiao Baojuan's cousin Xiao Yaoguang (蕭遙光) the Prince of Shi'an, the senior official Xu Xiaosi (徐孝嗣), and the general Xiao Tanzhi (蕭坦之). The six officials each handled important matters of state according to their will and paid the young emperor little deference, drawing his ire. Xiao Yan, hearing that the young emperor had a reputation for being violent and frivolous, secretly prepared for eventual civil war at his post at Yong Province, but was unable to persuade his older brother Xiao Yi, who was then the acting governor of Ying Province (郢州, modern eastern Hubei), to do the same. In 499, receiving report that the high-level officials were planning to, on account of his irrational behavior, remove him from the throne, Xiao Baojuan acted first and executed Jiang Shi and Jiang Si. Xiao Yaoguang, who wanted to be emperor himself and feared being the next target, started an unsuccessful coup and was soon defeated and killed. However, despite the contributions of Xiao Tanzhi, Xu