In the last years of the Tang Dynasty, natural disasters continued, the people were in dire straits, corruption was rampant in the court, party disputes continued, the eunuchs were in power, the emperor was fatuous, and his son was defeated, so he revolted and acted for heaven.