prince's palace to spy on Li Longji and that she did not want him to have many sons. (He already had two by that point—Li Sisheng's older brothers Li Sizhi, later named Li Cong (by Consort Liu) and Li Siqian, later named Li Ying (by Consort Zhao).) Li Longji was worried that, if Princess Taiping found out that Yang Guipin was pregnant, Princess Taiping's associates might harm him, and he spoke to a close associate, Zhang Shuo, stating: "A powerful individual did not want me to have many sons. I am afraid that this woman would become a target. What do you think?" Li Longji began to prepare an herbal stew that, in traditional Chinese medicine, was believed to be able to induce an abortion, but as he did so, fell asleep and had a dream that a god descended and overturned the ding holding the stew. When he told Zhang this as well, Zhang responded, "This is heaven's will. You should not worry." (As a result, later on in life, Li Sisheng would feel personally indebted to Zhang Shuo.) In 712, Emperor Ruizong passed the throne to Li Longji, who took the throne as Emperor Xuanzong, but Emperor Ruizong retained actual power as Taishang Huang (retired emperor). Shortly after Emperor Xuanzong took the throne, Emperor Ruizong, as retired emperor, was the one who created Li Sisheng the Prince of Shan. (After Emperor Xuanzong suppressed Princess Taiping's associates in 713 and forced her to commit suicide, Emperor Ruizong transferred imperial authorities to Emperor Xuanzong and was no longer involved in politics.) Li Siqian, whose mother Consort Zhao was then Emperor Xuanzong's favorite concubine, was created crown prince. Li Sisheng, although his mother alive, was raised by Emperor Xuanzong's wife Empress Wang, who was herself sonless. It was said that in his childhood, he was kind and studious, and Emperor Xuanzong was pleased with him. Emperor Xuanzong thus made the officials He Zhizhang (), Pan Su (), Lü Xiang (), Huangfu Bin (), and Xing Su () accompany him in his studies. In 724, due to the machinations of Consort Wu, who had by then become Emperor Xuanzong's favorite concubine, Empress Wang was deposed, and she died shortly after. Thereafter, Consort Wu began a campaign, in association with the chancellor Li Linfu, to have her own son Li Qing the Prince of Shou made crown prince, but was not able to