Al-Jawdhar was the sole person told about this by al-Qiam as the hujja, which in the Shii sect of Islam is the chosen individual that imams are able to inform about their line of succession. This was one of the most sacred positions in the sect as they were seen as great wells of religious knowledge and law. There were several other eunuchs of high regard in Fatimid history, mainly being Abul-Fadi Rifq al-Khadim and Abul-Futuh Barjawan al-Ustadh. Rifq was a black African eunuch general served as governor of the Damascus until he led an army of 30,000 men in a campaign to expand Fatimid control northeast to the city of Aleppo, Syria. He was noted for being able to unite a diverse group of black Africans, Arabs, Bedouins, Berbers, and Turks into one coherent fight force which was able to successfully combat the Mirdasids, Bedouins, and Byzantines. Barjawan was a European eunuch during late Fatimid rule who gained power through his military and political savvy which brought peace between them and the Byzantine empire. Moreover, he squashed revolts in the Libya and the Levant. Given his reputation and power in the court and military he took the reigns of the caliphate from his then student al-Hakim bi-Amr Allah; then ruled as the de facto Regent 997 CE. His usurpation of power from the caliph resulted in his assassination in 1000 CE on the orders of al-Hakim. Algiers
In the 16th century, an Englishman, Samson Rowlie, was captured and castrated to serve the Ottoman governor in Algiers.
Ancient Greece, Rome and Byzantium
The practice was also well established in other Mediterranean areas among the Greeks and Romans, although a role as court functionary does not arise until Byzantine times. The Galli or Priests of Cybele were eunuchs. In the late period of the Roman Empire, after the adoption of the oriental royal court model by the Emperors Diocletian (r. 284-305) and Constantine (r. 306–337), emperors were surrounded by eunuchs for such functions as bathing, haircutting, dressing, and bureaucratic functions, in effect acting as a shield between the emperor and his administrators from physical contact, thus enjoying great influence in the imperial court (see Eusebius and Eutropius). Julian (r. 361–363) released the eunuchs from their service because he felt they were overpaid, and he subsequently realized how much they had contributed to palace operations.The Roman poet Martial rails against a woman who has sex with partially castrated eunuchs (those whose testicles were removed or rendered inactive only) in the bitter epigram (VI, 67): "Do you ask, Panychus, why your Caelia only consorts with eunuchs? Caelia wants the flowers of marriage – not the fruits." It is up for debate whether this passage is representative of any sort of widely practiced behavior, however. At the Byzantine imperial court, there were a great number of eunuchs employed in domestic and administrative functions, actually organized as a separate hierarchy, following a parallel career of their own. Archieunuchs—each in charge of a group of eunuchs—were among the principal officers in Constantinople, under the emperors.