Aimed at ending a dangerous standoff, the agreement between Iran and the United States, France, Germany, Britain, China and Russia was nailed down after more than four days of tortuous negotiations in the Swiss city of Geneva.
Halting Iran's most sensitive nuclear work, it was designed as a package of confidence-building steps to ease decades of tensions and confrontation and banish the spectre of a Middle East war over Tehran's nuclear aspirations.
European Union foreign policy chief Catherine Ashton, who has been coordinating talks with Iran on behalf of the major powers, said it created time and space for talks aimed at reaching a comprehensive solution to the dispute.
Read More: Key points in Iran nuclear deal with world powers
"This is only a first step," Iranian foreign minister Mohammad Javad Zarif told a news conference. "We need to start moving in the direction of restoring confidence, a direction in which we have managed to move against in the past."
In Washington, US President Barack Obama said that if Iran did not meet its commitments during a six-month period, the United States would turn off sanctions relief and "ratchet up the pressure."
Read More: Iran has committed to halt enrichment above 5%, says US
Israel lashed out at the Geneva deal as being heavily stacked in Iran's favour, with Prime Minister Benjamin Netanyahu calling it a "historic mistake."
Following a months-long diplomatic campaign warning of the dangers of easing economic sanctions on Iran in exchange for steps to curb its contested nuclear programme, senior cabinet ministers chimed in, with one saying Israel reserved the right to strike Iran on its own.
Netanyahu told his cabinet on Sunday that "what was achieved in Geneva is not a historic agreement but rather a historic mistake," according to a post on spokesman Ofir Gendelman's Twitter account.
Before Sunday's agreement, Israel, believed to be the Middle East's only nuclear power, said the deal being offered would give Iran more time to master nuclear technology and amass potential bomb fuel.
READ: India welcomes Iran nuclear deal
The West fears that Iran has been seeking to develop a nuclear weapons capability. The Islamic Republic denies that, saying its nuclear programme is a peaceful energy project.
The United States said the agreement halted progress on Iran's nuclear programme, including construction of the Arak research reactor, which is of special concern for the West as it can yield potential bomb material.
It would neutralise Iran's stockpile of uranium refined to a fissile concentration of 20%, which is a close step away from the level needed for weapons, and calls for intrusive U.N. nuclear inspections, a senior US official said.
Read More: A timeline of key events in US-Iran negotiations
Iran has also committed to stop uranium enrichment above a fissile purity of 5 percent, a US fact sheet said. Refined uranium can be used to fuel nuclear power plants - Iran's stated goal - but also provide the fissile core of an atomic bomb if refined much further.
EU foreign policy chief Catherine Ashton (L) and Iranian foreign minister Mohammad Javad Zarif in Geneva.(AFP photo)
Reversible sanctions relief
Diplomacy with Iran was stepped up after the landslide election of Hassan Rouhani, a relative moderate, as Iranian president in June, replacing bellicose nationalist Mahmoud Ahmadinejad.
Rouhani aims to mend fences with big powers and get sanctions lifted. He obtained crucial public backing from Supreme Leader Ayatollah Ali Khamenei, keeping powerful hardline critics at bay.
On a Twitter account widely recognised as representing Rouhani, a message said after the agreement was announced, "Iranian people's vote for moderation & constructive engagement + tireless efforts by negotiating teams are to open new horizons."
Read More: Israel slams 'bad' deal between Iran, world powers
The Geneva deal has no recognition of an Iranian right to enrich uranium and sanctions would still be enforced, the U.S. official said.
But Iranian Deputy Foreign Minister Abbas Araqchi said Iran's enrichment programme had been officially recognised.
US Secretary of State John Kerry said the agreement would make it harder for Iran to make a dash to build a nuclear weapon and would make Israel and other US allies safer.
Kerry also told a news conference that while Obama would not take off the table the possible use of force against Iran, he believed it was necessary first to exhaust diplomacy.
He said the limited sanctions relief could be reversible. After Ashton read out a statement on the deal to the cameras at the United Nations in Geneva, ministers appeared elated.
Read More: Obama declares Iran deal 'important first step'
Ashton and Kerry hugged each other, and Kerry and Russian foreign minister Sergei Lavrov shook hands. Minutes later, as the Iranian delegation posed for photos, Zarif and French Foreign Minister Laurent Fabius approached each other and embraced.
A White House fact sheet detailed what Iran could obtain: - Potential access to $1.5 billion in revenue from trade in gold and precious metals and the suspension of some sanctions on Iran's auto sector, and its petrochemical exports;
- Allow purchases of Iranian oil to remain at their currently significantly reduced levels. "$4.2 billion from these sales will be allowed to be transferred in instalments if, and as, Iran fulfils its commitments," the fact sheet said;
- License safety-related repairs and inspections inside Iran for certain Iranian airlines. Most of the sanctions, Kerry said, would remain in place. "The approximately $7 billion in relief is a fraction of the costs that Iran will continue to incur during this first phase under the sanctions that will remain in place," the White House said.
"The vast majority of Iran's approximately $100 billion in foreign exchange holdings are inaccessible or restricted." Kerry and the foreign ministers of the five other world powers joined the negotiations with Iran early on Saturday as the two sides appeared to be edging closer to a long-sought preliminary agreement.
Read More: Iran nuclear deal 'will make Israel safer', says Kerry
The Western powers' goal was to cap Iran's nuclear energy programme, which has a history of evading U.N. inspections and investigations, to remove any risk of Tehran covertly refining uranium to a level suitable for bombs.
British foreign secretary William Hague said in a Twitter message that it was an "important and encouraging" first-stage agreement with Iran, whose nuclear programme "won't move forward for 6 months and parts rolled back."
France's Fabius said, "After years of blockages, the agreement in Geneva on Iran's nuclear programme is an important step to preserving security and peace."
Tehran, whose oil-dependent economy has been severely damaged by tightening Western sanctions over the past few years, denies it would ever "weaponise" enrichment.
The OPEC producer rejects suspicions it is trying covertly to develop the means to produce nuclear weapons, saying it is stockpiling nuclear material for future atomic power plants.
"This is the first time in 33 years that Washington and Tehran have concluded a formal agreement. Even six months ago, few would have imagined this outcome," said senior fellow Suzanne Maloney of the Saban Center for Middle East Policy at Brookings.