Oil jumped as the European Union proposed to ban Russian crude over the next six months and refined products by the end of the year.

Futures in New York rose 4.1% to trade above $106 a barrel on Wednesday. The EU’s plan is the most significant energy response from the bloc to the war in Ukraine as it seeks to cut reliance on Moscow. As well as directly banning oil imports, the EU is also targeting insurers in a move that could alter Moscow’s ability to ship oil anywhere in the world.

Traders have been keenly focused on just how much the war will affect output from Russia, one of the biggest producers.

“This will be a complete import ban on all Russian oil, seaborne and pipeline, crude and refined,” European Commission President Ursula von der Leyen said. “We will make sure that we phase out Russian oil in an orderly fashion, in a way that allows us and our partners to secure alternative supply routes and minimizes the impact on global markets.”

Europe is highly dependent on Russian crude, and some countries will find it easier to switch supply than others. Russia shipped about 720,000 barrels a day of crude to European refineries through its main pipeline to the region last year. That compares with seaborne volumes of 1.57 million barrels a day from its Baltic, Black Sea and Arctic ports.

The European Commission’s plan “removes some of the overhang from a lack of a clear proposal in prior weeks,” said Rohan Reddy, director of research at Global X Management. “It’s a clear signal by the EU that the bloc is willing to move on from Russian oil, despite its current dependence on it. It will need to be voted on by the EU’s member states, but putting forth a framework is a major step.”

Hungary and Slovakia, which had been opposed to a swift cutoff of Russian oil and are highly reliant on its supply, will be granted a longer time frame—until the end of 2023—to enforce the sanctions, according to people with knowledge of the matter.

The phaseout of Russian oil in Europe will come at a time when the world is grappling with a refined-product crisis—potentially making it all the more costly for the region to wean itself off Russian fuels such as diesel. On Tuesday, the American Petroleum Institute reported a weekly drop of about 4.5 million barrels each in U.S. gasoline and distillate inventories, according to people familiar with the figures, the latest sign of tightness in fuel markets.

The U.S. diesel crack spread—a gauge of the profitability of turning crude into diesel—has surged this year as countries cut back on Russian fuel, depleting supplies.

Oil investors are also counting down to a meeting on Thursday of the Organization of Petroleum Exporting Countries and its allies on production policy. The 23-nation group is expected to ratify another modest supply increase amid signs that the alliance is failing to deliver agreed-upon volumes.