Who were the first people to live in Morocco Libya Algeria and Tunisia?

The Imazighen (Berbers) were the first to live in that area. Later Phoenicians came and then the Romans.