 For example, becoming spies for emperors or officials.The Yongle emperor gave the eunuchs the authority to be in charge in the implementation of political tasks.As eunuchs' presence and power grew, they gradually took over the duties of female palace musicians and become the dominant musicians in the Ming palace.