Eunuchs suffered a lot, that is, the Eastern Han Dynasty, the Middle Tang Dynasty and the Ming Dynasty.
After the middle and late Eastern Han Dynasty, the age of the emperor's accession to the throne was generally young, and the empress dowager listened to politics and the consorts took power from it. When the emperor grew up, he was unwilling to be a puppet and wanted to seize his power. He can only trust the eunuchs around him. If the emperor succeeds in seizing power, the consorts will be eliminated, the eunuchs will be made heroes and start monopolizing power; If the emperor fails, the general situation is that he will be abolished, and the consorts group will find another child to continue to do so.
The eunuch autocracy after the middle Tang Dynasty was mainly due to their support.
In Ming Dynasty, eunuchs relied on secret agencies such as Dongxichang and Jinyiwei, and took advantage of the emperor's trust and monopoly.