Ye Nan and Bai Xiaotang, girls from the Military Medical University, were struck by lightning while traveling on Riyue Mountain and traveled back to the Kaiyuan period of the Tang Dynasty, and changed their genders. He was thought to be a Tibetan spy and captured by an ambush by Li Yu, the commander of the northwest frontier army of the Tang Dynasty. During this period, he met Taoist priest Luo Gongyuan and experienced several major battles against foreign invasions during the Kaiyuan period. Traveling from the northwest to the Central Plains, I personally experienced the prosperity and luxury of the Kaiyuan era. I met many historical figures, found my heart, and determined to change the course of history and avoid the Anshi Rebellion. However, when everything is settled, can they return to their daughters' bodies and welcome their own happy life?