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.