In Luoyang City in the Tang Dynasty, Shen Qingzhu, a peasant girl, was framed to death by a powerful man because of her father. In order to find out the truth, Shen Qingzhu entered the Luoyang Prison as a prisoner. With her ruthless swordsmanship and keen observation of emotions, she conquered the thorns in the prison and became the "Female King of Hell". While punishing the official and business bullies who oppressed the people, she also tracked down the cause of her father's death. In the process, the yandere secret guard Gu Zhao follows her paranoidly because he was redeemed by her, the elegant lawyer Lin Zhiyuan is fascinated by her straightforwardness, and the unruly general Chu Huaijin is impressed by her justice, and the three of them become her helpers. As the truth emerges, Shen Qingzhu exposes the collusion between the powerful and the behind-the-scenes forces, uses the power of the prison to overthrow the darkness, and becomes the "underground queen" of Luoyang City, realizing the belief that "those who offend me must be punished no matter how strong they are", and at the same time gain three love affairs that go in both directions.