Kuwait was a close ally of Iraq during the Iran–Iraq War and functioned as the country’s major port once Basra was shut down by the fighting.[17] However, after the war ended, the friendly relations between the two neighbouring Arab countries turned sour for several economic and diplomatic reasons that culminated in an Iraqi invasion of Kuwait.