An outline agreement on the future shape of the Iranian nuclear programme has been reached after marathon talks between Iran and six major powers in Switzerland.
Iran, the US and Germany all said a solution had been found after eight days of negotiations in Lausanne.
A comprehensive nuclear accord is meant to be drafted by 30 June.
Iran denies Western claims it is trying to build a nuclear weapon.
It entered negotiations in order to see sanctions lifted.
The negotiations between the so-called P5+1 – the US, UK, France, China and Russia plus Germany – and Iran at Lausanne’s Beau-Rivage Palace hotel were supposed to end on 31 March but overran in the search for agreement.
In a tweet, Iranian Foreign Minister Javad Zarif said: “Found solutions, ready to start drafting immediately.”
Also on Twitter, Germany’s foreign ministry said: “Agreement for framework on final agreement reached.”
And US Secretary of State John Kerry tweeted: “Big day… Back to work soon on final deal.”
But Israeli leader Benjamin Netanyahu also took to Twitter to declare: “Any deal must significantly role back Iran’s nuclear capabilities and stop its terrorism and aggression.”