Xiao Baoyin (蕭寶寅) (487–530), courtesy name Zhiliang (智亮), was an imperial prince of the Chinese dynasty Southern Qi. In 502, as Southern Qi was on the edge of being taken over by the general Xiao Yan, who was preparing by killing the imperial princes, Xiao Baoyin fled to rival Northern Wei and became an official and general in the Northern Wei government. In 527, as Northern Wei was embroiled in agrarian rebellions, Xiao Baoyin rebelled and tried to reestablish Southern Qi, but was soon defeated and forced to flee to a rebel leader, Moqi Chounu (万俟醜奴), and he served under Moqi until both were captured in 530 by the paramount general Erzhu Rong's nephew Erzhu Tianguang. He was forced to commit suicide.
Xiao Baoyin was born in 487, during the reign of Emperor Wu of Southern Qi, to whom his father Xiao Luan was a cousin. He was Xiao Luan's sixth son, and his mother was Xiao Luan's wife Liu Huiduan (劉惠端). She also bore two older brothers of his, Xiao Baojuan, Xiao Baoxuan (蕭寶玄), and a younger brother, Xiao Baorong, but died in 489, when Xiao Baoyin was just two. During Emperor Wu's reign, Xiao Luan carried the title of Marquess of Xichang and was a high-level official. After Emperor Wu's death in 493, Xiao Luan served as prime minister to Emperor Wu's grandson and successor Xiao Zhaoye, but in 494 killed the frivolous Xiao Zhaoye, briefly replacing Xiao Zhaoye with Xiao Zhaoye's brother Xiao Zhaowen before seizing the throne himself (as Emperor Ming). He created his sons imperial princes, and Xiao Baoyin carried the title of Prince of Jian'an.
Emperor Ming died in 498, and was succeeded by Xiao Baoyin's older brother Xiao Baojuan. Xiao Baojuan was a violent ruler, but treated his brothers generally well, and Xiao Baoyin was given important official titles. In 500, after Xiao Yan rebelled against Xiao Baojuan after Xiao Baojuan had killed Xiao Yan's brother, the general Xiao Yi (蕭懿), Xiao Yan and another rebel general, Xiao Yingzhou (蕭穎冑), declared Xiao Baoyin's younger brother Xiao Baorong emperor (as Emperor He) at Jiangling, plunging Southern Qi into civil war. In 501, the general Zhang Xintai (張欣泰) tried to rebel against Xiao Baojuan at the capital Jiankang, and he seized Xiao Baoyin, preparing to declare him emperor. However, Zhang was soon defeated, and Xiao Baojuan, believing Xiao Baoyin to be not involved in the plot, did not punish him. Xiao Yan, however, won victory after victory, and soon put Jiankang under siege.