Wang Shuwen was born in 753. His family was from Yue Prefecture (越州, in modern
Shaoxing,
Zhejiang). It was said that during the reign of
Emperor Dezong, he became a reserve consultant in the imperial administration on the basis of his abilities in
Go, rough knowledge in the books, and speaking ability. Emperor Dezong had him become a member of the staff of Emperor Dezong's son and
crown prince Li Song. It was said that Wang was, when he was having chances, bringing to Li Song's attention of the suffering of the people. At one point, Li Song was studying with several scholars who were teaching him in various matters, and they began to discuss one of the institutions of Emperor Dezong's court that was much criticized — "
the Emperor's purchasing" (宮市), where palace
eunuchs "bought" items for palace supplies, but effectively were forcibly taking things from merchants and paying either nothing or very little. Li Song indicated that when he had a chance, he would try to talk to Emperor Dezong to suggest ending the process. The scholars all praised Li Song, but Wang, who was also present did not say anything. After the scholar had left, Wang told Li Song that if he actually made such suggestions to Emperor Dezong, Emperor Dezong would suspect him of attempting to please the people. Li Song saw Wang's point and wept, and thereafter became more trusting of Wang. Meanwhile, Wang and another staff member of Li Song's,
Wang Pi, who was known for his
calligraphy, became close associates. As time went by, Wang Shuwen gradually recommended to Li Song a group of junior officials with reputations for abilities whom he believed could eventually be high level officials or generals, and whom he had befriended. Such junior officials included
Wei Zhiyi, Lu Chun (陸淳), Lü Wen (呂溫), Li Jingjian (李景儉), Han Ye (韓曄), Han Tai (韓泰), Chen Jian (陳諫),
Liu Zongyuan,
Liu Yuxi, Ling Zhun (凌準), and
Cheng Yi. It was said that they would spend their days together in secret and that the contents of their deliberations were not openly known. Some regional governors, believing that this would be the next group of officials to take power, sent them gifts. By 803, this group was said to be powerful enough that, when they suspected another junior official, Zhang Zhengyi (張正一) of making negative reports about Wang Shuwen to Emperor Dezong, they had Wei accuse Zhang of being wasteful and engaging in partisanship. As a result, Zhang and his associates Wang Zhongshu (王仲舒) and Liu Bochu (劉伯芻) were exiled without any publicly announced faults. == During Emperor Shunzong's reign ==