Stocks rose for a second consecutive day on Tuesday, helped by a stabilization in crude oil prices. Chipotle Mexican Grill fell on more concern about the safety of its food.

The Dow Jones industrial average rose 165.65 points, or 1 percent, to 17,417.27. The Standard & Poor’s 500-stock index rose 17.82 points, or 0.9 percent, to 2,038.97, and the Nasdaq composite index rose 32.19 points, or 0.7 percent, to 5,001.11.

Trading was light. Many investors have closed their portfolios for the year or are on vacation for the Christmas and New Year’s holidays.

However, a modest recovery in oil prices helped lift energy and materials stocks.

“Investors are either done for the year or are setting up their portfolios for 2016, buying this year’s winners or doing reallocation to their portfolios,” said JJ Kinahan, chief strategist at TD Ameritrade.