A eunuch is a castrated male, typically a slave. Eunuchs were often employed as harem guards and attendants, but in Imperial China played an important role as civil servants and advisors.