Li Xuan, an overworked night-shift employee, unexpectedly transmigrates into the body of a fake eunuch in the Great Xia dynasty who is about to be executed. The original owner bribed an official to preserve his manhood, but when the scheme was exposed, the official tried to kill him to cover it up and was instead killed by a creditor. Li Xuan narrowly escapes death and is taken into the imperial palace, where he stumbles upon a shocking secret: the emperor, Chu Yunxuan, is actually a woman disguised as a man.
To keep the powerful Su family, led by Chancellor Su, in check, the empress gives Li Xuan a chance to survive. She orders him to put on the imperial robes and impersonate the emperor in the dead of night, staging a consummation scene with Su Qingxuan, the most beautiful empress in Great Xia, to fool the Su family's spies.
Caught between a suspicious empress, a scheming empress, and powerful court officials, one wrong step could bring his entire family to ruin. Holding the royal family's greatest secret, Li Xuan carefully maneuvers through the cracks of the inner palace. He uses this absurd assignment to stir up turmoil at court, vowing to seize the false throne's authority for himself.