Born in a poor village and living alone in the mountains after the death of her parents, Xiaolian is scouted to work as a court lady in the imperial palace. Initially struggling to adapt, she accidentally slaps the First Consort and is demoted to a scullery maid, earning the nickname "Scullery Maid Princess." However, Xiaolian uses her resourcefulness and knowledge gained from her mountain life to reform the dilapidated palace and excel at her duties, gaining respect from the court ladies and consorts. She also becomes involved in hunting evil entities within the palace, further showcasing her abilities. Her reputation grows, eventually reaching the emperors themselves, who come to rely on her.