The story takes place in the fictional ancient dynasty Daliang, an era where officials were selected through the imperial examination system. The heroine Liang Siqing was born as a commoner. Due to her poor family, she was smart and studious since she was a child. However, due to gender restrictions, she was unable to participate in the imperial examination. The male protagonist Ji Tianrui is the only son of the Ji family, the richest man in the capital, and the grandson of the Minister of Rites of the current dynasty. He has a prominent status, but he is disheartened by the power struggle within the family and has no interest in fame and fortune.