Oil held gains above $62 a barrel as heightened tensions in the Middle East overshadowed a U.S. plan to raise tariffs on Chinese goods.

Futures edged higher in New York after closing up 0.5 percent on Monday. The U.S. is sending an aircraft carrier strike group and bomber force to the oil-rich region amid rising tensions with Iran, which has threatened to block the Strait of Hormuz. That buoyed crude prices, which were down more than 3 percent at one point on Monday, and outweighed news that the White House will raise levies on Chinese goods on Friday, threatening the global growth outlook.

Oil’s rally has gone into reverse in the last couple of weeks on speculation Saudi Arabia and other producers will pump more to make up for lost Iranian barrels. American drillers have also boosted output to a record and nationwide stockpiles climbed to the highest since September 2017. Meanwhile, the sudden deterioration in U.S.-China trade relations is souring a demand outlook that had been improving over the last couple of months.

“Oil prices got off the mat after geopolitical tail risks took another notch higher,” said Stephen Innes, head of trading at SPI Asset Management. “With U.S. browbeating stepping to the fore, oil prices quickly recovered from yesterday’s tumult.”

West Texas Intermediate crude for June delivery rose 15 cents, or 0.2 percent, to $62.40 a barrel on the New York Mercantile Exchange at 7:29 a.m. in London. The contract has lost around 6 percent since reaching the highest level in almost six months on April 23.

Brent for July settlement was steady at $71.23 a barrel on the London-based ICE Futures Europe exchange after falling as much as 31 cents, or 0.4 percent, earlier. The contract settled 0.6 percent higher at $71.24 on Monday. The global benchmark crude was at a premium of $8.69 to WTI for the same month.

U.S. National Security Advisor John Bolton said in a statement the deployment of the bomber force and USS Abraham Lincoln Carrier Strike Group would send an “unmistakable message” to Iran, and that the U.S. is prepared to respond to any attack. Any blockage of the Strait of Hormuz, the choke-point for shipments from the Persian Gulf, could be very disruptive to oil flows.

President Donald Trump’s top trade negotiator accused Beijing of backpedaling on commitments it made during negotiations as he announced that tariffs would be raised. Still, Chinese Vice Premier Liu He will visit the U.S. for trade talks on Thursday and Friday, according to a statement on the website of China’s Ministry of Commerce.