In Roman mythology, Iarbas was the son of Jupiter Hammon (Hammon was a North African god associated by the Romans with Jupiter, and known for his oracle) and a Garamantian nymph. He became the king of Getulia. According to Virgil's Aeneid, he fell in love with the Carthaginian queen Dido, who rejected his advances in favour of Aeneas.
Variations of the story were referred to by Ovid. In Ovid's Heroides, Dido describes Iarbas as one of her suitors, to whom Aeneas would be handing her over as a captive if he should leave her. In Ovid's Fasti, Iarbas and the Numidians invade Dido's land after her suicide, resulting in his capturing her palace.