Ayyur was the moon god according to the Berber beliefs. The name "Ayyur" means literally the moon, and it was also used as a term to indicate the word "month" and also as a masculine name. In the fifth century BC, Herodotus wrote that the Berbers sacrificed to the moon and the sun. Ibn Khaldoun stated that the berbers kept idolizing the moon, the sun and other celestial bodies until the fourteenth century AD.