In the seventeenth year of Tang Zhenyuan (AD 801), in Dezong's later years, there were turbulent undercurrents in the government: the eunuch group used the name of "palace market" to amass wealth and power, and the military and military power fell into the hands of the eunuchs; the three towns in Hebei Province were separatist, and they surrendered on the surface but secretly forged weapons and secretly communicated with foreign enemies; the water transport in the south of the Yangtze River often made mistakes, the sinking of grain ships occurred frequently, and there was a folk rumor that "water ghosts seek lives". The conflict between the court and the local government, the confrontation between justice and corruption.