The British-flagged tanker that was seized by Iran in July began to move again.
Stena Bulk, the shipping company that operates the Stena Impero ship, confirmed that the tanker was in motion and would comment further when it reached international waters.
Iranian maritime officials earlier said the ship had been released from the port city of Bandar Abbas.
Iranian Revolutionary Guards were photographed patrolling the Stena Impero in July
The seizure of the ship on the Hormuz Strait on July 19 came two weeks after an Iranian tanker was detained off the coast of Gibraltar.
Stena Impero is now heading to Port Rashid in Dubai, according to ship tracking data.
Iran's Revolutionary Guard seized the ship on the Hormuz Strait waterway for alleged marine violations.
The state news agency IRNA reported that the ship collided with an Iranian fishing boat.
Before its launch, Iranian government spokesman Ali Rabiei told reporters on Monday that legal proceedings against the Stena Impero were over.
Rabiei said: "Based on a friendly approach that allows forgiveness of errors, the ground for freedom of the tanker has been paved and can move."
Tanker said, "If you obey, you will be safe."
Tehran's semi-official Fars news agency quoted Iran's Foreign Ministry spokesman Seyed Abbas Mousavi as saying on Wednesday that the ship was close to being released.
Mousavi tweeted: "Today, the procedures for unloading the Stena Impero ship have been finalized with the follow-up of the Foreign Ministry and valuable cooperation between the judiciary and ports and Iran's maritime organization, but the case remains open to study some of its violations and damage to the environment. "
Stena Bulk said he was not in negotiations with Iran and was not aware of any formal charges against the crew or the company.
Iran had freed seven of the ship's 23 crew members.
The July seizure came two weeks after the Gibraltar authorities seized an Iranian tanker on suspicion of breaching EU sanctions on Syria.
The British Royal Marines rappelled the ship carrying 140 million pounds of crude oil.
Stena Impero was seized in the Strait of Hormuz
Gibraltar later released the tanker, and then called Grace 1 after saying Iran had promised it would not go to Syria.
The seizures of ships came after months of high tensions in the Persian Gulf over US President Donald Trump's decision more than a year ago to withdraw from the Iranian nuclear agreement.
World powers have imposed crippling sanctions on Iran's vital oil trade.
Tehran has since started breaking the terms of the deal.
Iran's seizure of the Stena Impero has increased tensions in the region following attacks in May and June on other merchant ships in the Gulf waters, which Washington blamed Tehran.
Iran has denied responsibility.