Iraq and Iran fought a bloody war in the 1980s when then-Iraqi leader Saddam Hussein was in power .