Only a few oil tankers braved Iran’s attacks to go through the Strait of Hormuz for much of the war, leading to a drastic reduction in how much crude reached world markets.

But since May, the US military has played a crucial role in getting millions of barrels of oil through the strait, helping to keep oil prices from rising further.

The operation stealthily shepherds tankers through the southern part of the strait on routes close to Oman. Iran effectively controls which ships go through its side of the strait, opposite Oman.

Before the war, about 15 million barrels of crude oil a day went through the Strait of Hormuz. In July, tankers using US-protected routes transported about 5 million barrels of oil daily out of the Persian Gulf, according to analysts.

“It’s one of the surprising successes,” said Michelle Wiese Bockmann, a shipping analyst at Windward, a maritime analysis firm. “They have been extraordinarily effective in keeping that southern corridor operating, despite the attacks.”