The United Nations’ shipping agency warned Thursday that imposing a toll on ships passing through the Strait of Hormuz would "set a dangerous precedent." 

The remark comes after President Donald Trump suggested Wednesday that there may be a U.S.-Iranian toll system coming for ships that travel through the key waterway. Trump told ABC News, "We’re thinking of doing it as a joint venture," and, "It’s a way of securing it — also securing it from lots of other people." 

"There is no international agreement where tolls can be introduced for transiting international straits. Any such toll will set a dangerous precedent," a ‌spokesperson ⁠for the U.N.'s International Maritime Organization ceasefire deal with Iran on Tuesday.

 "The United States of America will be helping with the traffic buildup in the Strait of Hormuz. There will be lots of positive action! Big money will be made. Iran can start the reconstruction process," Trump wrote on Truth Social on Wednesday morning. "We’ll be loading up with supplies of all kinds, and just ‘hangin’ around’ in order to make sure that everything goes well. I feel confident that it will." 

Fox News Digital’s Amanda Macias and Alexandra Koch contributed to this report.