He was responding to questions of whether mutual interests in fighting terrorism could possibly bring together Tehran and Washington — traditional foes that have had no diplomatic relations in more than three decades.

“If we see that the United States takes action against terrorist groups in Iraq, then one can think about it,” Rouhani said at a press conference marking a year since he was elected president.

Both Iranian and American leaders have separately pledged support for the government of Iraqi Prime Minister Nuri al-Maliki in fighting advancing fighters from the Islamic State of Iraq and the Levant (ISIL).

“We have said that all countries must unite in combating terrorism. But right now regarding Iraq we have not seen the Americans taking a decision yet,” Rouhani said, mentioning that problems in neighbouring Syria have been made worse by Western support for rebels there.