Relations between the two countries deteriorated after Syria sided with Iran in the Iran-Iraq war .