Oil prices posted the first monthly gain since September as the U.S. and Iran stand on the brink of a more direct confrontation in the Middle East.
U.S. crude and the global benchmark Brent rose 5.86% and 6.06% in January, though prices fell Wednesday after China factory activity contracted for the fourth consecutive month.
The West Texas Intermediate contract for March fell $1.97, or 2.53%, to settle at $75.85 a barrel. The Brent contract for March settled at $81.71 a barrel, down $1.16 or 1.40%.
Get top local stories in San Diego delivered to you every morning. Sign up for NBC San Diego's News Headlines newsletter.
"The factory data confirms our view that China, at least for now, is an impediment to global oil demand growth," Tamas Varga, an analyst with the crude broker PVM, wrote in a Wednesday note.
Though Chinese factory activity weighed on the market, prices rose for the month on stronger than expected U.S. growth, disruptions to crude supplies in the U.S. due to winter storms, and Beijing's efforts to simulate its economy.
U.S. crude supply bounced back last week after the winter storms, with inventories rising 1.2 million barrels and estimated production up to 13 million barrels per day, according to the Energy Information Administration.
Money Report
And the Federal Reserve held benchmark interest rates steady Wednesday but indicated it is not quite ready to start cutting rates yet either.
U.S., Iran on the brink
Geopolitical tensions are also simmering in the Middle East with the U.S. and Iran standing on the precipice of a more direct confrontation, highlighting the potential risk to crude supplies in the region.
"The spreading conflict in the Middle East remains the most visible and growing risk for energy markets," Natasha Kaneva, head of global commodities research at JPMorgan, told clients in a research note Tuesday.
"While escalation cannot be written off, it remains unlikely in our view, as main parties in the conflict have strong incentives to avoid direct confrontation, and so far they have acted accordingly," Kaneva wrote.
Iran-allied militants have killed three U.S. soldiers in a drone strike in Jordan and hit an oil tanker with a missile in the Gulf of Aden in a series of major escalations since Friday.
President Joe Biden said Tuesday that he has decided on a response to the death of U.S. troops and holds Iran responsible for supplying the militants with weapons. Defense Secretary Lloyd Austin said the administration "will take all necessary actions to defend the United States, our troops, and our interests."
U.S. officials told NBC News on Wednesday that the White House is planning a "campaign" that could last several weeks. The targets, which have not yet been finalized, are expected to include Iranian targets outside Iran in multiple places in several countries and locations, the officials said.
Iran has denied involvement in the attack that killed U.S. troops. Tehran said Wednesday it would "take decisive action in case of any US aggression," according to the state news agency IRNA.
The response in the oil markets to the simmering tensions in the Middle East has been muted so far because there has not been a major disruption to crude supplies. Analysts have repeatedly warned that a direct confrontation between the U.S. and Iran could send oil prices higher if there's a major disruption in the Strait of Hormuz, the crucial chokepoint for crude flows.
Retired U.S. Navy Admiral James Stavridis, former NATO Supreme Allied Commander, told CNBC Tuesday that the death of U.S. troops raises the risk of a wider conflict, though he noted that neither the U.S. nor Iran want a wider war.
This article has been updated to correct the name of the Energy Information Administration.