The civil wars that characterized the later years of the Seleucid Kingdom had their origins in the defeat of Antiochus III the Great in the Roman–Seleucid War, under which the peace terms ensured that a representative of the Seleucid royal family was held in Rome as a hostage. Initially the future Antiochus IV Epiphanes was held hostage, but with the succession of his brother, Seleucus IV Philopater, in 187 and his apparent breaking of the Treaty of Apamea with Rome, Seleucus was forced to recall Antiochus to Syria and instead replace him with his son, the future Demetrius I Soter in 178 BC.