Sun Mo, a top teacher at City No. 2 Middle School, finds himself in the Tang Dynasty of the Zhou Kingdom after a mishap. He becomes a newly graduated intern teacher with a wealthy and beautiful fiancée who also happens to be the principal of a prestigious but failing school on the verge of closure. Sun Mo's mission is to help his fiancée secure her position as principal and restore the school to its former glory. With the help of the Legendary Master system, he transforms students from failures into geniuses. Under his guidance, they progress from ordinary students to top scholars, and eventually become powerful figures. His students include sword masters, gun saints, and even a demon emperor, proving his exceptional teaching abilities.