Seoul (CNN)A South Korean tanker seized by Iranian authorities in January has been released.
In a press release Friday, South Korea's Foreign Ministry said the Hankuk Chemi and its captain were freed early Friday Iranian time. The captain and crew's health was sound -- as was the cargo, the ministry said.
Iran seized the tanker at sea in January, accusing it of polluting the waters with chemicals and holding the vessel in the port of Bandar Abbas.
Its release comes after South Korea promised to try to secure the release of Iranian funds frozen in South Korean banks under US sanctions, a South Korean official told Reuters.
The Iranian Foreign Ministry confirmed the ship's release following the conclusion of an investigation and at the request of its owner and the South Korean government, according to state news agency IRNA.
"Iran, with long coastlines in the Persian Gulf and the Sea of Oman, stresses full compliance with maritime regulations, including environmental protection, and monitors every violation in this respect," Saeed Khatibzadeh, a foreign ministry spokesman, was quoted as saying.
He said the the Iranian decision to release the captain had taken into account that he had no record of past violations in the region.
The issue triggered a diplomatic dispute after Iran demanded that South Korea release $7 billion in funds frozen in South Korean banks under US sanctions.
A South Korean Foreign Ministry official told reporters Friday that both sides had agreed the ship and the funds were not related issues and South Korea promised to help get the money released.
"We have expressed our firm willingness to resolve the fund issue," said the official, who declined to be identified.
The South Korean ministry said in a statement the ship had left Iran after completing administrative procedures. It made no mention of the demand for the release of funds.
"The captain and sailors are in good health," the ministry said.
South Korea said the vessel did not cause any pollution. The ministry official said Iran dropped a plan to pursue seek criminal charges against the shipping company.
Iran has denied allegations that the seizure of the tanker and its crew constituted hostage-taking, saying it was South Korea that was holding Iranian funds hostage.
The freezing of the funds is linked to US sanctions that Washington reimposed on Tehran in 2018 after then-President Donald Trump withdrew from Iran's 2015 nuclear deal with world powers.
Under the Biden administration, the United States and Iran have begun indirect talks over a return to the accord.
The United States has recently agreed to allow Iran to use the funds for non-military purposes and it has spent some on coronavirus vaccines secured via the global COVAX initiative, the ministry official said, without giving a precise amount.