Su Qingyan, a graduate student in history in the 21st century, accidentally knocked over a laboratory beaker and caused an electric spark when she was reviewing information to complete her graduation thesis. She was hit by an electric current. When she opened her eyes again, she was transformed into a queen of the Yong Dynasty who was to be deposed. With her intelligence and unique charm, she started a prosperous life in the palace and became the favorite of everyone.