 Eunuchs were frequently employed in Imperial palaces by Muslim rulers as servants for female royalty, as guards of the royal harem, and as sexual mates for the nobles.Some of these attained high-status positions in society.An early example of such a high-ranking eunuch was Malik Kafur.