Lin Wei, a modern doctor with a PhD in medicine and toxicology, transmigrates into the Han palace as a maid named A Man. Relying on her medical and poison-making skills, as well as her knowledge of psychology and economics, she climbs the ranks from the laundry bureau. She foils palace intrigues, solves bizarre murder cases, helps Emperor Wu of Han govern the realm, and becomes his favorite. Rising from obscurity to empress, she uses her wisdom to turn desperate situations around and holds fast to her principles amid political maneuvering, helping the emperor build a prosperous age.