Stena Impero, a British-flagged oil tanker, which had been seized in Iranian waters has been released.

The tanker had already left the Bandar Abbas port, Stena Bulk, the Swedish owner of the seized vessel, said on Friday.

The vessel was seized in the Strait of Hormuz on July 20, for allegedly breaking maritime rules.

Tehran has since denied allegations that it seized the ship as an act of retaliation after an Iranian vessel was seized off Gibraltar by the UK Royal Marines on July 4.

The Iranian vessel, Adrian Darya-1, was seized for allegedly flouting EU sanctions on Syria.

Stena Impero will head to Dubai after the release where the crew will be debriefed and medically evaluated, Erik Hanell, CEO of Stena Bulk, said.