One of the first major fronts of the Iran–Syria alliance was Iraq. During the Iran–Iraq War, Syria sided with non-Arab Iran against Iraq and was isolated by Saudi Arabia and some of the Arab countries, with the exceptions of Libya, Lebanon, Algeria, Sudan and Oman. As one of Iran's few Arab allies during the war, Syria shut down an Iraqi oil pipeline (Kirkuk–Baniyas pipeline) to deprive the Iraqis of revenue. Syria also trained Iranians in missile technology and provided Iran with Scud B missiles between 1986 and 1988. In return for Syria's war support, Iran provided Syria with millions of free and discounted barrels of oil throughout the 1980s. In addition, Khomeini was restrained in his condemnation of the 1982 Hama massacre.