Iran's Revolutionary Guards had warned that the vital waterway was unsafe due to US and Israeli attacks and was therefore closed to ships.