It was believed in ancient times that Africa was originally populated by Gaetulians and Libyans, both nomadic peoples.  According to the Roman historian Sallust, the demigod Hercules died in Spain and his polyglot eastern army was left to settle the land, with some migrating to Africa. Persians went to the West and intermarried with the Gaetulians and became the Numidians. The Medes settled and were known as Mauri, later Moors.