The United Kingdom must tread carefully as in its newly thawed relationship Iran, but the two countries can work together to defeat so-called Islamic State militants, Foreign Secretary Philip Hammond has said.
Speaking from Tehran where the UK has reopened its embassy, Mr Hammond said Iran was "too large a player" in the Middle East to leave in isolation, but insisted he was not blind to the risks the country can pose to regional stability.
Britain closed its embassy in Tehran in 2011 after a mob rampaged through the compound, smashing windows, torching cars and burning Union flags.
The embassy has now reopened following a historic international deal on Iran's nuclear programme.
But the Foreign Secretary said that despite a "deep legacy of distrust", the UK and Iran share common ground on the need to defeat IS, also known as Isil, in Syria and Iraq, as well as stopping opium reaching Europe from Afghanistan.
Once the two countries start working together on these issues it will be easier to address areas of disagreement, such as on human rights in Iran, he said.
Mr Hammond told BBC Radio 4's Today programme: