The Iran-US conflict can be settled if Iran reopens the strait of Hormuz in return for the US accepting that Iran can enrich uranium domestically, António Guterres, the outgoing UN secretary general has said.
It is rare for international diplomats to assert that Iran, as a signatory to the nuclear non-proliferation treaty (NPT), retains a right to enrich uranium, as long as it is not enriched beyond 3.75% and is subject to UN inspection.
Iran had been enriching close to 60%. The US has been resisting any deal that does not include an end to Iranian uranium enrichment and having its stockpile exported.
Guterres was speaking in Doha on Saturday as mediation continued against a backdrop of intensified fighting between Iran and the US over the US blockade on Iran's oil exports. On Friday, a US F-16 jet was shot down in a friendly fire incident over the strait.

Iran's foreign minister, Abbas Araghchi, was attending the Doha forum to speak to Qatar and Pakistan, the main mediators.
Araghchi was thrown on the defensive when questioned about Iranian attacks on key Gulf energy installations, claiming "some rockets might have got out of hand", but hit back that some Gulf States had attacked Iran aggressively.
He insisted in wartime Iran had every right to retaliate.
The outburst laid bare the continuing tensions between Iran and the Gulf States over Tehran's decision to attack not just US bases, but other Gulf infrastructure in a move to reply to US attacks on Iran.
Although both sides for months have talked broadly about reuniting behind a new regional security arrangement, the reality is each still feels deeply aggrieved about the other's behaviour.
The former Iranian foreign minister, Javad Zarif, repeatedly named Kuwait for allowing the US to use its bases to mount attacks that had left Iranian civilians killed by lethal new weaponry.
Although Araghchi said a diplomatic agreement was in reach, there was little indication a breakthrough was imminent as he referred to "a complete absence of trust with the US".
When asked if he was concerned the approaching anniversary of last January's protests might spark more demonstrations, Araghchi said Iran "would do it again", by which he meant the government would mount a security response if the protests became violent. Araghchi said legitimate protest was allowed, although his account of the protests is disputed.
Estimates of those killed by the Iranian authorities during the protests range from 3,000 to 35,000.
The US has been trying to coordinate the mediation process, which is in danger of becoming overloaded with conflicting messages and participants.
The US president, Donald Trump, after resisting Israeli efforts to begin bombing Iran again, is keeping his options open before a strategic decision in the new year.
Guterres said a solution to the Gulf crisis must be anchored in international law, stressing "there must be freedom of navigation in the strait of Hormuz".
"The NPT treaty says that countries have the right to enrich for civilian purposes up to 3.75%. I believe that the solution is one in which the right of enrichment of uranium, at the levels defined by the treaty for civilian purposes, with of course the mechanisms for inspection that are necessary, if these two principles are accepted, I think all the others can be solved," he said.

Guterres also said the Palestinian issue lay at the centre of Middle East instability, and denounced the collective punishment of the Palestinian people by Israel.
"Israel's interest lay in avoiding the Palestinian state. It has shown an interest in keeping as much instability as possible in the neighbourhood. And we see what happens in Lebanon and we see the difficulties that the new Syria is facing."
Guterres is to stand down as secretary general at the end of the year. He called for his successor to be independent and a defender of the UN charter, saying: "The first obligation of the secretary general is to be a reference in relation to the charter and in relation to international law. There is no way to establish trust where people believe they can violate, [with] impunity, international law."
His remarks will be interpreted by some as questioning the candidacy of Lana Nusseibeh, a United Arab Emirates minister and former ambassador to the UN. Her critics claim she is not independent of the UAE and is still in effect an employee of its authoritarian government.
The UAE has long been accused of supporting the Rapid Support Forces (RSF) in Sudan, a charge repeatedly denied by Nusseibeh, who has publicly disputed the findings of UN investigators. The RSF have been accused of war crimes and genocide in Sudan's four-year civil war.
On Sudan, Guterres said "too many countries were involved that should not be involved".
He said he had no idea what would happen on 1 January when he is due to stand down. The UN security council has been unable to agree on a successor and Guterres said one of the great problems facing the UN was its inability to reform the security council in a way that reflects the modern world.