NEW YORK -- Oil futures rose on Thursday after attacks on two tankers off the coast of Iran, while the US Treasury yield curve steepened and stocks rose following economic data seen as strengthening the case for the Federal Reserve to cut interest rates this year.
Wall Street's major stock indexes closed higher after falling for two days as investors regained their appetite for risk assets.
The number of Americans applying for unemployment benefits unexpectedly rose last week, potentially adding to concerns about the US labor market after May job growth slowed. Other data showed import prices fell by the most in five months in May in the latest indication of muted inflation pressures, adding to expectations the Fed will cut rates this year.
"There are still concerns over geopolitical risk," said Quincy Krosby, chief market strategist at Prudential Financial in Newark, New Jersey.
"The market is waiting to hear from the Fed ... and whether they will deviate at all from their latest stance, and I call it an active dovish position, to see if they continue to lay the groundwork for a rate cut perhaps later in the summer."
The S&P pared gains slightly after US Secretary of State Mike Pompeo said, without offering concrete evidence, the United States believed Iran was responsible for tanker attacks in the Gulf of Oman.
The Dow Jones Industrial Average rose 101.94 points, or 0.39 percent, to 26,106.77, the S&P 500 gained 11.8 points, or 0.41 percent, to 2,891.64 and the Nasdaq Composite added 44.41 points, or 0.57 percent, to 7,837.13.
The pan-European STOXX 600 index rose 0.16 percent and MSCI's gauge of stocks across the globe gained 0.06 percent.
After falling hard on Wednesday, oil futures rebounded sharply on the news of the tanker attacks near Iran and the Strait of Hormuz, a key passage for seaborne oil cargoes.
U.S. crude settled up 2.23 percent at $52.28 while Brent rose $1.14 to $61.31.
YIELD CURVE STEEPENS
Increased expectations of Fed rate cuts pulled short-dated US Treasury yields lower on Thursday, steepening the yield curve ahead of Friday's retail sales data and the Fed's meeting next week.
Benchmark 10-year notes last rose 9/32 in price to yield 2.0979 percent, from 2.127 percent late on Wednesday.
In currencies, the US dollar was little changed against the euro as investors were slow to take large positions before the Fed meeting and the G20 summit later in June when US and China leaders are expected to discuss trade.
The dollar index, which tracks the greenback against 6 major currencies, rose 0.05 percent, with the euro down 0.12 percent to $1.1273.
The Japanese yen strengthened 0.11 percent versus the greenback, to 108.40 per dollar, while sterling was last trading at $1.2675, down 0.09 percent on the day.
Gold prices edged higher on expectations for a US rate cut after the soft inflation data, although the uptick in equities capped gains.
Spot gold added 0.6 percent to $1,341.37 an ounce.