 According to Ibn Khaldun, the name "Mazîgh" is derived from one of the early ancestors of the Berbers, based on one opinion.The Maghreb region in northwestern Africa is believed to have been inhabited by Berbers from at least 10,000 BC.Local cave paintings, which have been dated to twelve millennia before present, have been found in the Tassili n'Ajjer region of southern Algeria.