Special forces soldier Lin Feng accidentally transmigrates during a mission. When he wakes, he finds himself in the body of Li Erdan, a young emperor of the Tang dynasty who has just ascended the throne. Faced with a mess of powerful ministers controlling the government and chaos in the harem, he uses military-style discipline to bring the palace to order.