In the Mughal era, for example, court eunuchs held responsibilities such as guardians of the female quarters within the palace, administrators, military commanders, envoys, intelligence agents, collectors of land revenue, and managers of various business ventures.