During the Zhenguan period, the Tang Dynasty began to flourish under Li Shimin, but undercurrents were surging inside and outside the palace. The prince Li Chengqian and the king of Wei Li Tai fought overtly and secretly for the position of crown prince. The ministers in the court took sides, and the concubines in the harem also fought for power for their son, using frequent tactics.