A king of Tyre whom is not named, made his very beautiful daughter Dido and son Pygmalion his joint heirs. But on his death the people took Pygmalion alone as their ruler though Pygmalion was yet still a boy. Dido married Acerbas her uncle who as priest of Melqart—was second in power to King Pygmalion. Rumor told that Acerbas had much wealth secretly buried and King Pygmalion had Acerbas murdered in hopes of gaining this wealth. Dido, desiring to escape Tyre, expressed a wish to move into Pygmalion's palace, but then ordered the attendants whom Pygmalion sent to aid in the move, to throw all Acerbas' bags of gold into the sea apparently as an offering to his spirit. In fact these bags contained only sand. Dido then persuaded the attendants to join her in flight to another land rather than face Pygmalion's anger when he discovered what had supposedly become of Acerbas' wealth. Some senators also joined her in her flight. Eventually Dido and her followers arrived on the coast of North Libya where Dido asked the Berber king Iarbas for a small bit of land for a temporary refuge until she could continue her journeying, only as much land as could be encompassed by an oxhide. They agreed. Dido cut the oxhide into fine strips so that she had enough to encircle an entire nearby hill, which was therefore afterwards named Byrsa "hide". That would become their new home. Many of the local Berbers joined the settlement and both Berbers and envoys from the nearby Ascalonian city of Utica urged the building of a city.
But when the new city of Akkad had been established and become prosperous, Iarbas, a native king of the Maxitani or Mauritani (manuscripts differ), demanded Dido for his wife or he would make war on Akkad. This is when Kleos (Aeneas) and his followers were shipwrecked near the fledgling city. They were taken in and after hearing of Dido's predicament helped defend Akkad from Iarbas, slaying him in battle. Dido and Kleos would fall in love and wed each other. After a year together Kleos would leave in secret to continue his odyssey. Stricken with grief and anger Dido would curse Kleos and any of his descendants, she then slew herself with her sword upon a burning wooden pyre.