A “complete and total ceasefire” has been agreed between Israel and Iran, according to Donald Trump.
The US president made the announcement on Truth Social – hours after Tehran launched a missile strike on a US army base in Qatar.
In a post shared at just after 11pm UK time, Mr Trump said the first stage of the ceasefire would begin six hours later.
Follow the latest developments in our live blog
This means both countries could still launch strikes in the meantime – and soon after, Israel announced evacuation orders for two areas in Tehran.
A senior Iranian official told the Reuters news agency that Tehran has agreed to the ceasefire after being persuaded by Qatar.
Mr Trump wrote: “Officially, Iran will start the CEASEFIRE and, upon the 12th Hour, Israel will start the CEASEFIRE and, upon the 24th Hour, an Official END to THE 12 DAY WAR will be saluted by the World.
“On the assumption that everything works as it should, which it will, I would like to congratulate both Countries, Israel and Iran, on having the Stamina, Courage, and Intelligence to end, what should be called, ‘THE 12 DAY WAR.’
“This is a War that could have gone on for years, and destroyed the entire Middle East, but it didn’t, and never will!”
In an interview with Sky News’ partner network NBC, the president said it was a “great day” for the US and the Middle East – and a “wonderful day” for the world.
“I’m very happy to have been able to get the job done. A lot of people were dying and it was only going to get worse. It would have brought the whole Middle East down,” he said.
Mr Trump said he thinks the ceasefire is “unlimited” and is “going to go forever” – adding: “I don’t believe they will ever be shooting at each other again.”
Just hours earlier, people in the Qatari capital Doha had stopped and gazed up at the sky as Iranian missiles flew to the American al Udeid base and interceptors fired.
Officials said there were no casualties, and the US later confirmed it had been warned about the attack by Iran.
Mr Trump was in the Situation Room in the White House as the strikes took place.
He later claimed on his social network that the missiles were a “very weak response”, which the US “expected” and “very effectively countered”.
The Iranian attack came after the US dropped “bunker buster bombs” on three key nuclear sites in Iran over the weekend.
In a new interview on Fox News, US Vice President JD Vance claimed Iran is no longer able to build nuclear weapons after the American attacks.
“Iran was very close to having a nuclear weapon,” he said. “Now Iran is incapable of building a nuclear weapon with the equipment they have because we destroyed it.”