mainland, forming a bulwark against the Odrysians. In 306/305 BC, Lysimachus followed the example of Antigonus and assumed the royal title. In 302 BC, when the second alliance between Cassander, Ptolemy and Seleucus was made, Lysimachus, reinforced by troops from Cassander, entered Asia Minor, where he met with little resistance. On the approach of Antigonus he retired into winter quarters near Heraclea, marrying its widowed queen Amastris, a Persian princess. Seleucus joined him in 301 BC, and at the Battle of Ipsus Antigonus was defeated and slain. Antigonus' dominions were divided among the victors. Lysimachus' share was Lydia, Ionia, Phrygia and the north coast of Asia Minor. Feeling that Seleucus was becoming dangerously powerful, Lysimachus now allied himself with Ptolemy, marrying his daughter Arsinoe II of Egypt. Amastris, who had divorced herself from him, returned to Heraclea. When Antigonus' son Demetrius I renewed hostilities (297 BC), during his absence in Greece, Lysimachus seized his towns in Asia Minor, but in 294 BC concluded a peace whereby Demetrius was recognized as ruler of Macedonia. He tried to carry his power beyond the Danube, but was defeated and taken prisoner by the Getae king Dromichaetes (or Dromihete), who, however, set him free in 292 BC on amicable terms in return for Lysimachus surrendering the Danubian lands he had captured. Demetrius subsequently threatened Thrace, but had to retire due to a sudden uprising in Boeotia and an attack from King Pyrrhus of Epirus. In 287 BC, Lysimachus and Pyrrhus in turn invaded Macedonia and drove Demetrius out of the country. Lysimachus left Pyrrhus in possession of Macedonia with the title of king for around seven months before Lysimachus invaded. For a short while the two ruled jointly but in 285 BC Lysimachus expelled Pyrrhus, seizing complete control for himself. Later years Domestic troubles embittered the last years of Lysimachus’ life. Amastris had been murdered by her two sons; Lysimachus treacherously put them to death. On his return, Arsinoe II asked the gift of Heraclea, and he granted her request, though he had promised to free the city. In 284 BC Arsinoe, desirous of gaining the succession for her sons in preference to Lysimachus’ first child, Agathocles, intrigued against him with the help of Arsinoe's paternal half-brother Ptolemy Keraunos; they accused him of conspiring with Seleucus to seize the throne, and Agathocles was put to death. This atrocious deed by Lysimachus aroused great indignation.