Investors welcome the possible resumption of oil and gas flows through the Strait of Hormuz.

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."

Trump announced the deal not long before a deadline for a Tuesday evening ultimatum for Iran was reached.