After Khomeini gained power, small battles between Iraq and revolutionary Iran happened for ten months. The two countries were fighting over who controlled the Shatt al-Arab waterway, which divides Iran and Iraq.