The US has thanked Iran for the swift release of 10 US sailors held for entering its territorial waters.
Secretary of State John Kerry said the resolution of the matter was "testament to the critical role diplomacy plays in keeping our country safe".
Republican presidential hopefuls had criticised the administration over its handling of the incident.
A deal on Iran's nuclear activities - which they also disparage - is said to be days away from implementation.
The sailors were detained on Tuesday when one of their two vessels broke down while training in the Gulf.
The incursion was "unintentional", a statement from the Iranian Revolutionary Guards quoted by state media said.
Iranian state media said the sailors were released into international waters after they apologised. But Vice-President Joe Biden denied this, saying the boat had had simply a problem and there was "nothing to apologise for".
Jump media player
Media player help
Out of media player. Press enter to return or tab to continue.
Media captionGeneral Ali Fadavi of the Revolutionary Guard said the sailors were not spying The US is investigating how the sailors entered Iranian waters.
Thanking Iranian authorities for their "co-operation and quick response", Mr Kerry said: "These are always situations which have an ability if not properly guided to get out of control...
"This kind of issue was able to be peacefully resolved and officially resolved, and that is testament to the critical role diplomacy plays in keeping our country safe, secure, and strong," he added.
Iranian state broadcaster Irib News has published pictures of the sailors apparently being detained.
Jump media player
Media player help
Out of media player. Press enter to return or tab to continue.
Media captionThe BBC's Jonathan Beale looks at why the US Navy sailors were released so quickly Image copyright Irib News Image copyright Irib News Later pictures published on the Revolutionary Guards' website showed the group sitting on a Persian rug, with the one female member wearing a headscarf.
Image copyright Sepahnews Image caption The Guards published pictures of the nine men and one woman being held Iran-US relations pass a test: Jonathan Marcus, BBC diplomatic correspondent
The tentative and still largely potential softening of relations between Washington and Tehran in the wake of the nuclear deal seems to have passed a delicate initial test.
The Tehran authorities have quickly accepted that the US patrol boats strayed into their waters by accident.
The process to begin lifting the sanctions imposed on Iran due to its nuclear activities is expected to get under way at the end of this week.
There are many conservatives and hardliners in both countries who would dearly love to sabotage the deal. Consequently both governments may well have been eager to get this episode resolved as quickly as possible.
Clearly the economic benefits of lifting the sanctions may have been too great an inducement for the agreement to be derailed now.
Mr Kerry called Foreign Minister Mohammad Javad Zarif shortly after the incident. The pair developed a personal rapport during the nuclear talks.
Those detained - nine men and one woman - were taken to Farsi Island, in the middle of the Gulf, where Iran has a naval base.
Conservatives in both countries have opposed the nuclear deal, under which Iran will limit its nuclear activities in exchange for the lifting of sanctions.
In the US, Republican presidential candidates were among those expressing outrage at the sailors' detention.
"Iran is testing the boundaries of this administration's resolve," said Marco Rubio.
"[Barack] Obama's humiliatingly weak Iran policy is exposed again," Jeb Bush said in a tweet before the sailors were released.
Donald Trump said Iran was "toying" with the US.
Iran's deputy nuclear chief has meanwhile denied a report the Arak heavy-water reactor had been decommissioned, which would be a final step towards implementation of the nuclear deal.
Restraint in Iranian media, by BBC Monitoring
Iranian state media's coverage of the incident has been studiously restrained and measured in tone.
The usual pejorative terms usually reserved for the US and other Western powers - such as "global arrogance" and "enemies" - have been conspicuous by their absence.
State TV and radio reports did highlight that the US incursion had been "illegal" and that Tehran wanted an apology, later reporting that it had got it.
The mood music was far less tense and confrontational than during the capture of British sailors in in 2007, with Iran insisting they strayed into its water - an accusation London denied.
Then, the Iranian media initially accused the UK servicemen of spying, and later mockingly reported that one of them had cried when his music player was confiscated.
Read the full media report
Q&A: Iran's nuclear deal
What is it? In July, Iran agreed a landmark nuclear deal with six world powers to limit its sensitive nuclear activities for more than a decade in return for the lifting of crippling sanctions. The US is confident the agreement will prevent Iran from obtaining a nuclear weapon. Iran says it has the right to nuclear energy - and stresses that its nuclear programme is for peaceful purposes only.
When is 'implementation day'? Iran will not see the UN, US and EU sanctions lifted until the global nuclear watchdog, the International Atomic Energy Agency (IAEA), certifies that it has fulfilled its commitments under the deal. Iran reportedly says the IAEA will do so this Friday. US Secretary of State John Kerry says implementation will take place "within coming days".
What does Iran stand to gain? The sanctions have cost Iran more than more than $160bn (£102bn) in oil revenue since 2012 alone. Once they are lifted, the country will be able to resume selling oil on international markets and using the global financial system for trade. Iran has the fourth largest oil reserves in the world and the energy industry is braced for lower prices. Iran will also be able to access more than $100bn in assets frozen overseas.
Share this story About sharing
More on this story
Middle East
'Horrifying conditions' in Syrian town
Full article 'Horrifying conditions' in Syrian town
Israelis charged over migrant beating
Full article Israelis charged over migrant beating
Saudi activist's wife 'arrested'
Full article Saudi activist's wife 'arrested'
More Videos from the BBC
<li class="ob-dynamic-rec-container ob-recIdx-0 ob-o"> Video shows moment Iran detained US Navy sailors <li class="ob-dynamic-rec-container ob-recIdx-1 ob-o">
<li class="ob-dynamic-rec-container ob-recIdx-1 ob-o"> Cologne sex attacks: 'We were surrounded by 20 or 30 men' <li class="ob-dynamic-rec-container ob-recIdx-2 ob-o">
<li class="ob-dynamic-rec-container ob-recIdx-3 ob-o"> Army chiefs 'failed to identify beastings' <li class="ob-dynamic-rec-container ob-recIdx-4 ob-o">
<li class="ob-dynamic-rec-container ob-recIdx-4 ob-o"> Reporter stabbed while testing protective vest <li class="ob-dynamic-rec-container ob-recIdx-5 ob-o">
Recommended by Outbrain
Elsewhere on BBC
Recommended by Outbrain
You Might Also Like
Top Stories
US thanks Iran for freeing sailors The US thanks Iran for the swift release of 10 sailors held for entering its waters, an incident which could have held up implementation of a nuclear deal.
7 hours ago
Three dead in Alps avalanche 3 hours ago
Friends cast back together for special 2 hours ago
Advertisement
Features & Analysis
Men in black
The secret lives of the Mafia hunters
Fog on Mars
Spectacular images of our planetary neighbours
Roommate
Why Brie Larson stayed at home for a month
Creepy gadget ad
The firm behind the controversy says the scenes weren't real
Digital Deutschland
Can Germany's manufacturers do digital?
Bulldozed lives
Anger over Tanzania demolitions to prevent flooding
Moving mealtimes
Could only eating in an 8-hour window tackle obesity?
Forget Mao
Here's one face you can't avoid in China
Made up murder
Embarrassment as the crime that shocked a nation exposed as fake
Most Popular popular
Most read
Advertisement
From Around the Web
<li class="ob-dynamic-rec-container ob-recIdx-0 ob-p"> 44 Stunning Images Of Things You Had No Idea Existed (Pics) BoredLion <li class="ob-dynamic-rec-container ob-recIdx-1 ob-p">
<li class="ob-dynamic-rec-container ob-recIdx-1 ob-p"> Study Reveals How Your Favorite Color is Related to Your… Sony USA - Electronics, PlayStation, Movies, Music, Product Support <li class="ob-dynamic-rec-container ob-recIdx-2 ob-p">
<li class="ob-dynamic-rec-container ob-recIdx-2 ob-p"> 7 Serious Lack of Vitamin D Warning Signs Reinventing Aging <li class="ob-dynamic-rec-container ob-recIdx-3 ob-p">
<li class="ob-dynamic-rec-container ob-recIdx-3 ob-p"> 10 Things to Know Before You Move to New York Box Butler <li class="ob-dynamic-rec-container ob-recIdx-4 ob-p">
<li class="ob-dynamic-rec-container ob-recIdx-4 ob-p"> US Presidents That Actually Had Low IQs InsideGov <li class="ob-dynamic-rec-container ob-recIdx-5 ob-p">
Promoted content by Outbrain
Ads by Google
Secretary of State John Kerry said the resolution of the matter was "testament to the critical role diplomacy plays in keeping our country safe".
Republican presidential hopefuls had criticised the administration over its handling of the incident.
A deal on Iran's nuclear activities - which they also disparage - is said to be days away from implementation.
The sailors were detained on Tuesday when one of their two vessels broke down while training in the Gulf.
The incursion was "unintentional", a statement from the Iranian Revolutionary Guards quoted by state media said.
Iranian state media said the sailors were released into international waters after they apologised. But Vice-President Joe Biden denied this, saying the boat had had simply a problem and there was "nothing to apologise for".
Jump media player
Media player help
Out of media player. Press enter to return or tab to continue.
Media captionGeneral Ali Fadavi of the Revolutionary Guard said the sailors were not spying The US is investigating how the sailors entered Iranian waters.
Thanking Iranian authorities for their "co-operation and quick response", Mr Kerry said: "These are always situations which have an ability if not properly guided to get out of control...
"This kind of issue was able to be peacefully resolved and officially resolved, and that is testament to the critical role diplomacy plays in keeping our country safe, secure, and strong," he added.
Iranian state broadcaster Irib News has published pictures of the sailors apparently being detained.
Jump media player
Media player help
Out of media player. Press enter to return or tab to continue.
Media captionThe BBC's Jonathan Beale looks at why the US Navy sailors were released so quickly Image copyright Irib News Image copyright Irib News Later pictures published on the Revolutionary Guards' website showed the group sitting on a Persian rug, with the one female member wearing a headscarf.
Image copyright Sepahnews Image caption The Guards published pictures of the nine men and one woman being held Iran-US relations pass a test: Jonathan Marcus, BBC diplomatic correspondent
The tentative and still largely potential softening of relations between Washington and Tehran in the wake of the nuclear deal seems to have passed a delicate initial test.
The Tehran authorities have quickly accepted that the US patrol boats strayed into their waters by accident.
The process to begin lifting the sanctions imposed on Iran due to its nuclear activities is expected to get under way at the end of this week.
There are many conservatives and hardliners in both countries who would dearly love to sabotage the deal. Consequently both governments may well have been eager to get this episode resolved as quickly as possible.
Clearly the economic benefits of lifting the sanctions may have been too great an inducement for the agreement to be derailed now.
Mr Kerry called Foreign Minister Mohammad Javad Zarif shortly after the incident. The pair developed a personal rapport during the nuclear talks.
Those detained - nine men and one woman - were taken to Farsi Island, in the middle of the Gulf, where Iran has a naval base.
Conservatives in both countries have opposed the nuclear deal, under which Iran will limit its nuclear activities in exchange for the lifting of sanctions.
In the US, Republican presidential candidates were among those expressing outrage at the sailors' detention.
"Iran is testing the boundaries of this administration's resolve," said Marco Rubio.
"[Barack] Obama's humiliatingly weak Iran policy is exposed again," Jeb Bush said in a tweet before the sailors were released.
Donald Trump said Iran was "toying" with the US.
Iran's deputy nuclear chief has meanwhile denied a report the Arak heavy-water reactor had been decommissioned, which would be a final step towards implementation of the nuclear deal.
Restraint in Iranian media, by BBC Monitoring
Iranian state media's coverage of the incident has been studiously restrained and measured in tone.
The usual pejorative terms usually reserved for the US and other Western powers - such as "global arrogance" and "enemies" - have been conspicuous by their absence.
State TV and radio reports did highlight that the US incursion had been "illegal" and that Tehran wanted an apology, later reporting that it had got it.
The mood music was far less tense and confrontational than during the capture of British sailors in in 2007, with Iran insisting they strayed into its water - an accusation London denied.
Then, the Iranian media initially accused the UK servicemen of spying, and later mockingly reported that one of them had cried when his music player was confiscated.
Read the full media report
Q&A: Iran's nuclear deal
What is it? In July, Iran agreed a landmark nuclear deal with six world powers to limit its sensitive nuclear activities for more than a decade in return for the lifting of crippling sanctions. The US is confident the agreement will prevent Iran from obtaining a nuclear weapon. Iran says it has the right to nuclear energy - and stresses that its nuclear programme is for peaceful purposes only.
When is 'implementation day'? Iran will not see the UN, US and EU sanctions lifted until the global nuclear watchdog, the International Atomic Energy Agency (IAEA), certifies that it has fulfilled its commitments under the deal. Iran reportedly says the IAEA will do so this Friday. US Secretary of State John Kerry says implementation will take place "within coming days".
What does Iran stand to gain? The sanctions have cost Iran more than more than $160bn (£102bn) in oil revenue since 2012 alone. Once they are lifted, the country will be able to resume selling oil on international markets and using the global financial system for trade. Iran has the fourth largest oil reserves in the world and the energy industry is braced for lower prices. Iran will also be able to access more than $100bn in assets frozen overseas.
Share this story About sharing
- Iran nuclear deal: Arak reactor 'not yet decommissioned'
13 January 2016
- Iran's Revolutionary Guards take lead on foreign affairs
29 January 2015
- US-Iran relations: A brief guide
24 November 2014
- Iran country profile
10 November 2015
- Video Diplomat: Iran had '100 billion reasons' to return sailors
3 hours ago
Middle East
'Horrifying conditions' in Syrian town
- 12 January 2016
- From the section Middle East
Full article 'Horrifying conditions' in Syrian town
Israelis charged over migrant beating
- 13 January 2016
- From the section Middle East
Full article Israelis charged over migrant beating
Saudi activist's wife 'arrested'
- 13 January 2016
- From the section Middle East
Full article Saudi activist's wife 'arrested'
More Videos from the BBC
<li class="ob-dynamic-rec-container ob-recIdx-0 ob-o"> Video shows moment Iran detained US Navy sailors <li class="ob-dynamic-rec-container ob-recIdx-1 ob-o">
<li class="ob-dynamic-rec-container ob-recIdx-1 ob-o"> Cologne sex attacks: 'We were surrounded by 20 or 30 men' <li class="ob-dynamic-rec-container ob-recIdx-2 ob-o">
<li class="ob-dynamic-rec-container ob-recIdx-3 ob-o"> Army chiefs 'failed to identify beastings' <li class="ob-dynamic-rec-container ob-recIdx-4 ob-o">
<li class="ob-dynamic-rec-container ob-recIdx-4 ob-o"> Reporter stabbed while testing protective vest <li class="ob-dynamic-rec-container ob-recIdx-5 ob-o">
Recommended by Outbrain
Elsewhere on BBC
Recommended by Outbrain
You Might Also Like
Top Stories
US thanks Iran for freeing sailors The US thanks Iran for the swift release of 10 sailors held for entering its waters, an incident which could have held up implementation of a nuclear deal.
7 hours ago
Three dead in Alps avalanche 3 hours ago
Friends cast back together for special 2 hours ago
Advertisement
Features & Analysis
Men in black
The secret lives of the Mafia hunters
Fog on Mars
Spectacular images of our planetary neighbours
Roommate
Why Brie Larson stayed at home for a month
Creepy gadget ad
The firm behind the controversy says the scenes weren't real
Digital Deutschland
Can Germany's manufacturers do digital?
Bulldozed lives
Anger over Tanzania demolitions to prevent flooding
Moving mealtimes
Could only eating in an 8-hour window tackle obesity?
Forget Mao
Here's one face you can't avoid in China
Made up murder
Embarrassment as the crime that shocked a nation exposed as fake
Most Popular popular
Most read
- 1 Ex-NFL star 'kills himself' in prison
- 2 Friends cast back together for special
- 3 US thanks Iran for freeing sailors
- 4 'Gigantic chasm under Antarctic ice'
- 5 Al Jazeera America to shut news channel
- 6 Obama's 'Jedi mind trick'
- 7 MH370 searchers find second shipwreck
- 8 US frenzy for world's largest lottery
- 9 US turning to UN over migrant crisis
- 10 The Republican woman who took on Trump
Advertisement
From Around the Web
<li class="ob-dynamic-rec-container ob-recIdx-0 ob-p"> 44 Stunning Images Of Things You Had No Idea Existed (Pics) BoredLion <li class="ob-dynamic-rec-container ob-recIdx-1 ob-p">
<li class="ob-dynamic-rec-container ob-recIdx-1 ob-p"> Study Reveals How Your Favorite Color is Related to Your… Sony USA - Electronics, PlayStation, Movies, Music, Product Support <li class="ob-dynamic-rec-container ob-recIdx-2 ob-p">
<li class="ob-dynamic-rec-container ob-recIdx-2 ob-p"> 7 Serious Lack of Vitamin D Warning Signs Reinventing Aging <li class="ob-dynamic-rec-container ob-recIdx-3 ob-p">
<li class="ob-dynamic-rec-container ob-recIdx-3 ob-p"> 10 Things to Know Before You Move to New York Box Butler <li class="ob-dynamic-rec-container ob-recIdx-4 ob-p">
<li class="ob-dynamic-rec-container ob-recIdx-4 ob-p"> US Presidents That Actually Had Low IQs InsideGov <li class="ob-dynamic-rec-container ob-recIdx-5 ob-p">
Promoted content by Outbrain
Ads by Google
- AloeCure For Acid Reflux
(1) Little Secret to Stopping Acid Reflux for Good - Read More.
startaloecure.com/Acid-Reflux - 14.2% 2014 Annuity Return
Best Annuities for 2015 Revealed. Get the Details in our Free Report.
onlineannuityrates.com/TopAnnuities - 6 Stocks to Hold Forever
Looking to retire? These 6 stocks will generate regular income.
wealthyretirement.com/Retirement
