Juba II was a Berber prince from Numidia. He was the only child and heir of King Juba I of Numidia; his mother's identity is unknown. In 46 BC, his father was defeated by Julius Caesar (in Thapsus, North Africa) and in 40 BC Numidia became a Roman province. His father had been an ally of the Roman General Pompey.