Oil tankers transiting the Strait of Hormuz must use Tehran's approved routes or face a "forceful response," Iran's joint military command warned Thursday, ratcheting up tensions again over a waterway crucial for international energy supplies.

The strait, the narrow mouth of the Persian Gulf, has emerged as one of the top issues in negotiations seeking a permanent end to the Iran war. The statement from the Khatam al-Anbiya military command, reported by Iranian state television, comes after both U.S. and Iranian diplomats met with mediators Wednesday in Qatar.

It wasn't clear what sparked the threat from Iran. However, the U.S. military's Central Command had put out a statement about a meeting with officials from Middle East nations in Bahrain that said "leaders underscored their shared commitment to the free flow of commerce through" the strait.

That could have been the phrase that angered Iran, which is preparing for the funeral that begins this weekend for the late Supreme Leader Ayatollah Ali Khamenei, who was killed in the war's first moments in February.

"Any failure to comply, deviation from the designated route, or disregard for the navigation protocols of the Islamic Republic of Iran in the Strait of Hormuz will be met with an immediate and forceful response from the armed forces, endangering the security of the violating vessels," the Iranian statement said.