NEW YORK (Reuters) - Crude oil prices rose more than 3 percent on Wednesday after U.S. President Donald Trump’s decision to withdraw from a nuclear accord with Iran, a move that helped lift equity markets as Exxon Mobil, Chevron and other oil majors rallied.

Contracts for Brent, the global crude benchmark, and its U.S. counterpart climbed to highs last seen in November 2014 after Trump on Tuesday abandoned the deal and announced the “highest level” of sanctions against Iran.

Trump’s action raises the risk of conflict in the Middle East and casts uncertainty over oil supplies in an already tight market.

U.S. crude CLcv1 rose $2.08 to settle at $71.14 per barrel and Brent LCOcv1 settled up $2.36 at $77.21.

The energy sector in equity markets rallied, helping lift European stocks, a gauge of world equity performance and the broad U.S. market.

“It’s the clear leader today. It’s overwhelming almost all the other sectors in terms of its impact on today’s market action,” said Michael Arone, chief investment strategist at State Street Global Advisors in Boston.

Exxon Mobil XOM.N closed up 2.36 percent, Chevron CVX.N gained 1.70 percent, Royal Dutch Shell RDSb.L added 3.38 percent and BP BP.L advanced 3.92 percent.

While crude oil prices have rallied over the past 12 months, energy stocks have basically gone nowhere, which helped their gains on Wednesday, Arone said.

U.S. crude since the end of March 2017 surged 46 percent, while the S&P energy sector .SPNY rose 9.2 percent over that period. So far this quarter the energy index is up 12.5 percent.

An oil pump is seen at sunset outside Vaudoy-en-Brie, near Paris, France April 23, 2018. REUTERS/Christian Hartmann

“Now we’re starting to see that gap close, so this could be a bit of a short-term rally for the energy sector,” he said.

MSCI's gauge of equity performance in 47 countries .MIWD00000PUS rose 0.61 percent. Exxon and BP were the second- and third-largest contributors earlier in the session. Technology stars Alphabet GOOGL.O and Facebook FB.O later led stocks higher.

Energy added the most points to the pan-European FTSEurofirst 300 index .FTEU3 of regional stocks, which closed up 0.74 percent, led by Royal Dutch Shell and BP. Total TOTF.PA was the fifth-largest gainer.

On Wall Street the technology sector led stocks higher, but the S&P energy sector .SPNY was the biggest percentage gainer at 2.03 percent.

The Dow Jones Industrial Average .DJI rose 182.33 points, or 0.75 percent, to 24,542.54. The S&P 500 .SPX gained 25.87 points, or 0.97 percent, to 2,697.79 and the Nasdaq Composite .IXIC added 73.00 points, or 1 percent, to 7,339.91.

Equities have recently traded in a range on concerns about U.S.-China trade negotiations, differing views between the Federal Reserve and investors over inflation and the economy, and the notion that earnings and growth have peaked, Arone said.

“Those things certainly have the market in a bit of a sideways pattern,” he said.

The dollar fell from its strongest levels in 2018 against a basket of currencies because of mild profit-taking, but the greenback was expected to resume its rise as a result of solid U.S. economic growth and further monetary tightening by the Fed.

A bounce in the euro, which dropped to a low for the year in early trading, helped weaken the dollar.

“There’s a little exhaustion with the long-dollar trade, but I don’t think we’ve reached the end of it yet,” said Ilya Gofshteyn, FX and global macro strategist at Standard Chartered Bank in New York.

The dollar index .DXY was little changed, with the euro EUR= up 0.1 percent to $1.1850. The Japanese yen JPY= weakened 0.54 percent versus the greenback to 109.70 per dollar.

The yield on the benchmark U.S. Treasury note US10YT=RR rose back above 3 percent, pushing prices down 10/32.

In Europe, the gap between Italian and German borrowing costs hit its widest in nearly six weeks on the possibility a coalition of Italian anti-establishment parties could come to power.

The Italy/Germany 10-year government bond yield spread widened five basis points immediately after news that 5-Star and the League had said they were holding last-minute talks to try to clinch a coalition deal.

The spread widened to 132.7 basis points, its most since March 29. IT10YT=RRDE10YT=RR

Gold prices slid as safe-haven buying failed to kick in after the U.S. withdrawal from the Iran nuclear accord.

U.S. gold futures GCcv1 for June delivery settled down 70 cents at $1,313 per ounce.

“The fact that the cat is out of the bag and we have the announcement (on Iran) - that has removed some of the geopolitical support for gold,” said Ole Hansen, head of commodity strategy at Saxo Bank in Copenhagen.