During the Kangxi era of the Qing Dynasty, in the bustling streets of the city, lives Wei Xiaobao (played by Han Dong), the glib and cunning son of a prostitute. By chance, he enters the palace disguised as a young eunuch, where he suffers greatly under the mysterious eunuch Hai Dafu. He later befriends the reigning emperor Kangxi (played by Wei Qianxiang), who spars with him under the name "Xiao Xuanzi." The two become sworn brothers and together capture the all-powerful minister Oboi. Meanwhile, Chen Jinnan, leader of the Heaven and Earth Society, raises the banner of overthrowing the Qing and restoring the Ming, setting his sights on the Qing court. The Divine Dragon Cult of the south stirs restlessly, planting spies within the palace. Across the strait, the Zheng family holds its corner and bides its time. And the Three Feudatories—former Ming loyalists like Wu Sangui and Shang Kexi—carve out their own territories, hoarding troops and power. Amid external threats and internal strife, the agile Wei Xiaobao maneuvers among them all, shaping the fate of the Qing Dynasty in various guises, while the successive appearance of seven wives pushes his life to its peak... This series is adapted from the wuxia novel of the same name by the renowned author Jin Yong.