(CNBC) -- Stocks rose on Wednesday after President Donald Trump spoke about an attack by Iran on an Iraqi air base that houses American troops, which had led to a massive sell-off in overnight trading.
The Dow Jones Industrial Average gained 161 points, or 0.6%. The Nasdaq Composite advanced 0.7% and notched intraday and closing records. The S&P 500 climbed 0.5% and hit an intraday all-time high.
In the final minutes of trading, the major averages came off their highs amid unconfirmed reports of explosions near Baghdad’s Green Zone. The Dow was up as much as 282 points, or 1%. The S&P 500 and Nasdaq gained as much as 0.9% and 1.1%, respectively.
Advertisement - story continues below