"The Confidant" depicts how a group of eunuchs survive in the weakening Qing empire, closely tracing the early life of imperial eunuch Li Lianying from the moment he entered the imperial palace to become one of the most powerful political figures in the later years of the Qing Dynasty. The drama also explores Li's relationship with Empress Dowager Cixi and how he ultimately becomes her closest confidant.