Shen Mingtang, the concubine of the prime minister's office, was sent to the frontier since she was a child. She learned military tactics from her grandfather, a retired general, and developed the military ability of "predicting the enemy first". In order to repay her grandfather's debt, she disguised herself as a man and joined the Northern Xinjiang Army, becoming the military advisor to the unpopular fourth prince Xiao Jingheng. Xiao Jingheng was sent to northern Xinjiang to quell the rebellion due to the weakness of his mother's clan. He initially dismissed the "weak military advisor" Shen Mingtang. It was not until Shen Mingtang used "luring the enemy into an ambush" and "countermeasures" to defuse crises such as enemy night attacks and the robbery of food and grass, and even defeated the enemy's 20,000 army with 3,000 troops that Xiao Jingheng took a new look at her. The two cooperated more and more tacitly on the battlefield. Xiao Jingheng accidentally discovered Shen Mingtang's daughter's identity. Not only did he not expose her, he secretly protected her. At this time, Zhao Dequan, a treacherous official in the DPRK, colluded with the enemy to leak military information and wanted to kill Xiao Jingheng. Shen Mingtang devised a plan to "lead the snake out of the hole" to seize the enemy and expose Zhao Dequan's conspiracy. Before Xiao Jingheng returned to Beijing to report on his duties, he confessed his love to Shen Mingtang, and the two agreed that "the day when Northern Xinjiang is pacified will be the time to get married." In the end, Xiao Jingheng brought Shen Mingtang back to Beijing and became the prince by virtue of his military exploits in northern Xinjiang. Shen Mingtang also entered the court as a "female military advisor" and slapped everyone in the prime minister's office who once despised her, and the two finally got married.