US President Donald Trump, in a landmark speech to leaders of more than 50 majority-Muslim nations, has used Australia as an example of a nation that has suffered terror attacks.
Mr Trump said the US wanted peace, not war in the Middle East and was prepared to stand alongside nations to pursue shared interests.
Iran, however, was singled out by the president for training terrorists, extremist groups and militias and fuelling "the fires of sectarian conflict and terror".
"Few nations have been spared the violent reach of terrorism," Mr Trump, speaking at the Arab-Islamic-American Summit in Riyadh, Saudi Arabia, on Sunday.
"America has suffered repeatedly barbaric attacks from the atrocities of September 11, to the devastation of the Boston bombings, to the horrible killings in San Bernadino and Orlando.
"The nations of Europe have also endured unspeakable horror.
"So too have the nations of Africa and South America, India, Russia, China and Australia have all been victims.
"But in sheer numbers the deadliest toll has been exacted on the innocent people of Arab, Muslim and Middle-Eastern nations."
Mr Trump called for a "coalition of nations" in the Middle East with the aim of "stamping out extremism".
His words were a step back from the anti-Muslim rhetoric he repeatedly delivered across the US at fiery rallies during his successful presidential campaign.
Mr Trump said he hoped the summit would mark the beginning of the end for those who practice terror and spread it across the world.
"But the nations of the Middle East cannot wait for American power to crush this enemy for them," the president said.
"The nations of the Middle East will have to decide what kind of future they want for themselves, for their country and frankly for their families and for their children."
Riyadh is the first stop on Mr Trump's first international tour as president.
He will also visit Israel, Italy, Vatican City and Belgium.