Iranian boats tried to impede a British oil tanker near the Gulf - before being driven off by a Royal Navy ship, the Ministry of Defence has said.
HMS Montrose, a British frigate escorting the tanker British Heritage, was forced to move between the three boats and the tanker, a spokesman said.
He described the Iranians' actions as "contrary to international law".
Iran had threatened to retaliate for the seizure of one of its own tankers, but denied any attempted seizure.
Boats believed to belong to Iran's Islamic Revolution Guard Corps (IRGC) approached the British Heritage tanker and tried to bring it to a halt as it was moving out of the Gulf into the Strait of Hormuz.
Guns on HMS Montrose were trained on the Iranian boats as they were ordered to back off, US media reported. The boats heeded the warning and no shots were fired.
The BBC has been told British Heritage - which is registered at the port of Douglas, in the Isle of Man - was near the island of Abu Musa when it was approached and harassed by the Iranian boats.
Although the island is in disputed territorial waters, HMS Montrose remained in international waters throughout.
A UK government spokesman said: "Contrary to international law, three Iranian vessels attempted to impede the passage of a commercial vessel, British Heritage, through the Strait of Hormuz.
"We are concerned by this action and continue to urge the Iranian authorities to de-escalate the situation in the region."