Egypt was not considered part of Libya (Africa) in Hellenistic geography.
In the Revolt of the Mercenaries, Berber soldiers participated from 241 to 238 BCE after being unpaid following the defeat of Carthage in the First Punic War.