Demetrius was of Macedonian descent. He was surnamed The Fair, because he was an attractive man. He was born and raised in Macedonia. Demetrius was named after his father and was the youngest of the children of King Demetrius I of Macedon and his wife, Ptolemais. Demetrius I married Ptolemais as his fifth wife around 287 BC/286 BC in Miletus, while this was Ptolemais’ first marriage. Demetrius was the only child born into the marriage, as his father died shortly thereafter, in 283 BC. From his father’s previous marriages, Demetrius had various paternal half siblings, who included king Antigonus II Gonatas, as well as Stratonice of Syria, princess and later Queen of the Seleucid Empire. Demetrius’ maternal grandparents were the first Greek-Egyptian pharaoh Ptolemy I Soter and Eurydice. Among his maternal aunts were Queen Arsinoe II of Egypt and among his maternal uncles were Pharaoh Ptolemy II Philadelphus and Macedonian King Ptolemy Keraunos. Pharaoh Ptolemy III Euergetes was a maternal cousin. His paternal grandparents were Macedonian king Antigonus I Monophthalmus and Stratonice, while his paternal uncle was the general Philip.
Not much is known about him until 249 BC. Greek Cyrenaean king Magas of Cyrene died in 249 BC or 250 BC. His widow was the powerful Greek monarch Apama II. She was Demetrius' niece through his paternal half sister Stratonice of Syria and her husband Antiochus I Soter of the Seleucid Empire. Apama summoned Demetrius from Macedonia. She offered her daughter with Magas Berenice II in marriage to Demetrius. Demetrius in return would become King of Cyrenaica and protect Cyrenaica from the Ptolemaic dynasty. Demetrius agreed to Apama's request and married Berenice. When he married Berenice and became king, there was no opposition in his rise to the throne, but he became ambitious to the point of recklessness. Sometime after his marriage to Berenice, Demetrius and Apama became lovers. Jealous of her husband's affair with her mother, Berenice argued with both of them and consented to the assassination of Demetrius, who died in Apama’s arms. The poem Coma Berenices by Greek poet Callimachus, apparently refers to her coup against Demetrius: "Let me remind you how stout-hearted you were even as a young girl: have you forgotten the brave deed by which you gained a royal marriage?"
First marriage and children
Demetrius's first marriage was to an Olympias, a Greek noblewoman from Larissa, the daughter of a nobleman, Polycletus or Polyclitus of Larissa. She probably died before 249 BC. Their children were Antigonus III Doson, the later Macedonian King, and Echecrates, a nobleman about whom not much is known apart from the fact that he had a son whom he named after his brother Antigonus. A few months before his paternal second cousin King Philip V of Macedon’s death, Echecrates' son Antigonus revealed to Philip that Philip's son, the prince Perseus of Macedon, had made false accusations against his brother, Philip's other son, Demetrius, whom Philip had then had put to death. Philip, indignant at Perseus’ conduct appointed Antigonus as his successor. When Philip died in 179 BC and Antigonus became king, Perseus ousted Antigonus and had him executed.