Brent oil rallied above $65 per barrel and was set to notch up a 6% gain this week on fears of a US military attack on Iran that would disrupt flows from the Middle East.

The Middle East provides more than a fifth of the world's oil output. 

Brent crude was up $1.02, or 1.6%, at $65.47 a barrel today. The global benchmark jumped 4.3% yesterday and was up around 6% for the week, in its first weekly gain in five weeks. 

US West Texas Intermediate crude was up 58 cents, or 1%, at $57.63 a barrel. The US benchmark surged 5.4% yesterday and was on track for a 10% increase this week.  

Analysts said that crude prices are spiking on increased Middle East tensions after Iran shot down a US drone in what the US claims is international airspace. Iran said it had shot the drone over its territory. 

Iranian officials told Reuters toay that Tehran had received a message from US President Donald Trump through Oman overnight warning that a US attack on Iran was imminent. 

The officials said they had responded by saying that any attack would have regional and international consequences. 

They also said Supreme Leader Ayatollah Ali Khamenei was against talks but said they would convey the US message to him. 

Tensions have been on the rise because US sanctions on Iran have severely reduced oil exports from OPEC's third largest producer and Washington has blamed Tehran, which denies any role, for a series of attacks on oil tankers in the Gulf. 

The demand-side outlook has also improved with appetite for risk assets rising after the European and the US central banks signalled possible rate cuts this week. 

A weaker greenback tends to support oil prices because crude is usually priced in dollars. 

Another macroeconomic factor supporting prices is the plan by Beijing and Washington to resume talks to resolve a trade tariff war that has hit economic growth prospects.

Concern about slowing economic growth and a U.S.-China trade dispute had pulled oil lower in recent weeks. That came after Brent reached a 2019-high above $75 in April.