If the gains hold, the Dow would finish higher for the fifth of the last six trading days.
Stocks set new highs in early August, but worries over Syria have pushed them lower since then. And even though Syria isn't a big oil producer, the possibility of a wider conflict in the region drove oil prices to two-year highs last week.
On Tuesday, Syria accepted a proposal to put its chemical weapons under international control for dismantling. The possibility that the crisis between the U.S. and Syria might be solved peacefully was a factor in the stock market's gain on Monday, too.
In afternoon trading Tuesday, the Dow Jones industrial average was up 107 points, or 0.7 percent, to 15,170. The Standard & Poor's 500 index rose 11 points, or 0.7 percent, to 1,682 and the Nasdaq composite rose 19 points, or 0.5 percent, to 3,725.
Crude oil, which closed above $110 a barrel on Friday, lost $2.63, or 2.4 percent, to $106.89 a barrel.
Among the 10 industry groups in the S&P 500, only energy stocks declined. Consumer staples were flat.
Despite the recent gains, Ralph Fogel of Fogel Neale Partners thinks it's about time for a pullback in the market. He noted that it's close to the five-year anniversary of the financial crisis, and the Dow has more than doubled since then.
The years since the crisis brought "almost a straight-up market without a 15 percent correction. That's a pretty neat move," he said. "That doesn't mean you have to have one, but the probability starts to get higher and higher."
"The next significant move isn't up 20" percent, he said. "It's down 20."
The makeup of the Dow got a shakeup on Tuesday. It's dropping Bank of America, Hewlett-Packard, and Alcoa, to be replaced by Goldman Sachs, Nike, and Visa at the start of trading on Sept. 23. The Dow is made up of 30 stocks.
S&P Dow Jones Indices said the change won't disrupt the level of the industrial average. It said it made the change to diversify the sector and industry group representation of the index.
Hewlett-Packard fell 15 cents, or 0.7 percent, to $22.21. Alcoa was flat and Bank of America rose 15 cents, or 1.1 percent, to $14.64.
Visa rose $5.35, or 3 percent, to $183.82; Nike rose $1.06, or 1.6 percnet, to $66.46, and Goldman Sachs rose $5.62, or 3.5 percent, to $165.107.
In other notable moves:
-- Microsoft rose 54 cents, or 1.7 percent, to $32.19 on rumors about who might be its next CEO when Steve Ballmer retires next year.
-- Urban Outfitters fell $4.12, or almost 10 percent, to $38.60 after saying its third-quarter sales increases are weaker than earlier in the year.
-- Netflix jumped $16.31, or 5.5 percent, to $310.40 as it continued to regain investor confidence after gaffes two years earlier that initially drove away subscribers.
Syria news helped stocks elsewhere, too. Germany's DAX rose 2 percent and the U.K.'s FTSE 100 gained 0.8 percent. The CAC 40 in France rose 1.9 percent.
Traders sold safe-play assets as the threat of a strike on Syria faded. Gold fell $22.80, or almost 2 percent, to $1,363.90 an ounce, and the yield on the benchmark 10-year Treasury note rose to 2.95 percent from 2.91 percent.
The dollar strengthened to 100.28 Japanese yen, and fell slightly against the euro.
MORE HBJ HEADLINES
Boeing expands Oklahoma City facility, business presence 4:11 p.m. Windows 10 fixes annoyances in earlier versions Don’t blame economy: More millennials living at home Fed holds steady on interest rates Taiwan, Thailand join deal to end tariffs on tech products Briefs: PUD offers heating, weatherization incentives
Our new comment system is not supported in IE 7. Please upgrade your browser here.