Africa. The medieval Tunisian historian Ibn Khaldun (1332–1406), recounting the oral traditions prevalent in his day, sets down two popular opinions as to the origin of the Berbers: according to one opinion, they are descended from Canaan, son of Ham, and have for ancestors Berber, son of Temla, son of Mazîgh, son of Canaan, son of Ham, a son of Noah; alternatively, Abou-Bekr Mohammed es-Souli (947 CE) held that they are descended from Berber, the son of Keloudjm (Casluhim), the son of Mesraim, the son of Ham. Scientific As of about 5000 BC, the populations of North Africa were descended primarily from the Iberomaurusian and Capsian cultures, with a more recent intrusion being associated with the Neolithic Revolution. The proto-Berber tribes evolved from these prehistoric communities during the late Bronze- and early Iron ages. Uniparental DNA analysis has established ties between Berbers and other Afroasiatic speakers in Africa. Most of these populations belong to the E1b1b paternal haplogroup, with Berber speakers having among the highest frequencies of this lineage. Additionally, genomic analysis found that Berber and other Maghreb communities have a high frequency of an ancestral component that originated in the Near East. This Maghrebi element peaks among Tunisian Berbers. This ancestry is related to the Coptic/Ethio-Somali component, which diverged from these and other West Eurasian-affiliated components before the Holocene. In 2013, Iberomaurusian skeletons from the prehistoric sites of Taforalt and Afalou in the Maghreb were also analyzed for ancient DNA. All of the specimens belonged to maternal clades associated with either North Africa or the northern and southern Mediterranean littoral, indicating gene flow between these areas since the Epipaleolithic. The ancient Taforalt individuals carried the mtDNA haplogroups U6, H, JT, and V, which points to population continuity in the region dating from the Iberomaurusian period. Human fossils excavated at the Ifri n'Amr ou Moussa site in Morocco have been radiocarbon dated to the Early Neolithic period, BC. Ancient DNA analysis of these specimens indicates that they carried paternal haplotypes related to the E1b1b1b1a (E-M81) subclade and the maternal haplogroups U6a and M1, all of which are frequent among present-day communities in the Maghreb. These ancient individuals also bore an autochthonous Maghrebi genomic component that peaks among modern Berbers, indicating that they were ancestral to populations in the area. Additionally, fossils excavated at the Kelif el Boroud site near Rabat were found to carry the broadly-distributed paternal haplogroup T-M184 as