Both Iran and Iraq had accepted United Nations Security Council Resolution 598, which would end the war on 20 July 1988. However, shortly thereafter Iraq decided to violate the ceasefire and launch a new attack, wishing to permanently occupy Khuzestan and western Iran, overthrown the Iranian government, thus reaching its goals from the beginning of the war.