British interests in Iran are to be represented by the Swedish embassy while the UK mission remains closed.
The UK cut diplomatic ties with Tehran last year after hundreds of militants stormed the embassy compound in the Iranian capital in November, tearing down the Union flag and burning an embassy vehicle.
From July 15, a British interests section will open in the Swedish embassy in Tehran, which played the same role during the long suspension of diplomatic relations following the 1979 Islamic revolution. Oman's embassy will perform the same role for Iran in London.
In a statement issued in London, the Foreign Office said: "We are very grateful to Sweden for agreeing to take on the role of 'protecting power', looking after the interests of the UK in Iran.
"A British interests section will open under the auspices of the Swedish Embassy in Tehran from 15 July. We have accepted the Sultanate of Oman as the Islamic Republic of Iran's protecting power in the UK.
"Following the unacceptable attack on our embassy last year by Iranian state-backed militia, we reduced our diplomatic relations with Iran to their lowest level. These new arrangements will help us continue essential business on a formal basis.
"The British interests section will provide limited consular assistance for emergencies only, as well as look after the staff and property of the British Embassy in Tehran.
"We have had an embassy in Iran for many years. And we would like to do so again in the future. But until that time arrives, we are confident that our interests in Tehran will be well looked after by the Swedish Embassy."