 In the 13th century, they lived in all the Maghreb plains with the exception of the main mountain ranges and some coastal regions that served as refuges for the natives.They gave up their old trade breeder of camels to look after the care of the sheep and oxen.Ibn Khaldun, a Muslim historian wrote