Caliph of Cordoba in the Al-Andalus (Moorish Iberia), Al-Hakam II was fond of books and learning, and amassed a vast library that may have contained over 400,000 books. During his reign a massive translation effort was undertaken, and many books were translated from Latin and Greek into Arabic. He formed a joint committee of Arab Muslims and Iberian Mozarab Christians for this task.
The catalogue of the royal library "alone consisted of forty-four volumes. Under Al-Haim II (961-976) this library was reported to have given employment to over 500 people. . . . Elsewhere at Moslem Spain there was a total of seventy libraries in the 10th century, several in Toledo. In addition to the royal library, these included libraries in universities in Cordoba, Seville, Malaga, and Granada , among others, and in numerous mosques. Private libraries flourished in Moslem Spain, and it was said that Cordoba was the greatest book market in the western world in the 10th century." (Harris, History of Libraries in the Western World 4th ed  81).