Benchmark U.S. crude was 3.1% higher on Thursday at $97.30 a barrel.

Earlier, U.S. stocks swung sharply during regular trading as uncertainty about the war with Iran increased after Trump had threatened that a “whole civilization will die tonight."

Oil markets rose after Iran accused the United States of violating elements of a two-week ceasefire agreement.