Oil prices climbed about 3% to a one-week high on Friday on worries that tensions in Israel and Gaza could spread into a wider conflict that could disrupt global crude supplies.
Brent futures rose $2.55, or 2.9%, to settle at $90.48 a barrel, while US West Texas Intermediate (WTI) crude rose $2.33, or 2.8%, to settle at $85.54.
Brent's premium over WTI
For the week, Brent was down about 2% and WTI down about 4%.
Trading was choppy. Early in the session, oil prices soared by more than $2 a barrel after the US military struck Iranian targets in Syria, Reuters reported.
"We are at the mercy of the next headline ... and I think that's kind of what we've been seeing today with the price swings," said Phil Flynn, an analyst at Price Futures Group.
"You'd like to be trading the fundamentals, but you really can't because you've got to be more worried about ... what's going to happen in the Middle East," Flynn said. "No one wants to be short over the weekend."
Middle East developments have so far not directly affected oil supplies, but many fear disruptions of exports from major crude producer and Hamas backer Iran and others.
"(It) remains incredibly difficult even for the most knowledgeable regional watchers to make high conviction calls about the trajectory of the current crisis, as the red lines that could bring more players onto the battlefield remain largely indiscernible," RBC Capital analyst Helima Croft said.