linguistic:translation, linguistic:paraphrasing, structural:reformatting
Role of eunuchs

The Hongwu Emperor forbade eunuchs to learn how to read or engage in politics. Whether or not these restrictions were carried out with absolute success in his reign, eunuchs during the Yongle Emperor's reign (1402–1424) and afterwards managed huge imperial workshops, commanded armies, and participated in matters of appointment and promotion of officials. Yongle put 75 eunuchs in charge of foreign policy; they traveled frequently to vassal states including Annam, Mongolia, the Ryukyu Islands, and Tibet and less frequently to farther-flung places like Japan and Nepal. In the later 15th century, however, eunuch envoys generally only traveled to Korea.

The eunuchs developed their own bureaucracy that was organized parallel to but was not subject to the civil service bureaucracy. Although there were several dictatorial eunuchs throughout the Ming, such as Wang Zhen, Wang Zhi, and Liu Jin, excessive tyrannical eunuch power did not become evident until the 1590s when the Wanli Emperor increased their rights over the civil bureaucracy and granted them power to collect provincial taxes.

The eunuch Wei Zhongxian (1568–1627) dominated the court of the Tianqi Emperor (r. 1620–1627) and had his political rivals tortured to death, mostly the vocal critics from the faction of the Donglin Society. He ordered temples built in his honor throughout the Ming Empire, and built personal palaces created with funds allocated for building the previous emperor's tombs. His friends and family gained important positions without qualifications. Wei also published a historical work lambasting and belittling his political opponents. The instability at court came right as natural calamity, pestilence, rebellion, and foreign invasion came to a peak. The Chongzhen Emperor (r. 1627–44) had Wei dismissed from court, which led to Wei's suicide shortly after.

The eunuchs built their own social structure, providing and gaining support to their birth clans. Instead of fathers promoting sons, it was a matter of uncles promoting nephews.The Heishanhui Society in Peking sponsored the temple that conducted rituals for worshiping the memory of Gang Tie, a powerful eunuch of the Yuan dynasty. The Temple became an influential base for highly placed eunuchs, and continued in a somewhat diminished role during the Qing dynasty.