Pharmaceutical and technology stocks were among the big risers, while shares in energy companies fell sharply as the decline in oil prices deepened. Discouraging data on U.S. home sales failed to derail the rally.
Trading volume was lighter than usual as many investors looked ahead to the Dec 25 holiday.
After a strong finish last week, investors remained mostly in a buying mood Monday.
The National Association of Realtors reported that sales of previously occupied homes fell 6.1 percent last month to a seasonally adjusted annual rate of 4.93 million. That’s the slowest pace in six months.
The Standard & Poor’s 500 index gained 7.89 points, or 0.4 percent, to 2,078.54. The S&P’s most recent record close was 2,075.37, set on Dec. 5.
The Dow Jones industrial average rose 154.64, or 0.9 percent, to 17,959.44. Its last record close was 17,958.79 on Dec. 5.
The Nasdaq composite picked up 16.04 points, or 0.3 percent, to 4,781.42.
The Dow and S&P 500 are both up for the month, while the Nasdaq is down. The three indexes are up for the year.
Pharmaceutical stocks were among those making big moves Monday.
Achillion Pharmaceuticals’ shares gained 9 percent after the biotechnology company reported positive results from two studies focusing on a treatment regimen for hepatitis C patients. The stock rose $1.28 to $15.49. Meanwhile, Enanta Pharmaceuticals vaulted 10.1 percent after it received regulatory approval for a hepatitis C treatment. Enanta added $4.70 to $51.32.
The price of U.S. oil fell on expectations of a further buildup in supplies both in the U.S. and from OPEC producers. Benchmark U.S. crude fell $1.26 to close at $55.26 a barrel in New York. Oil has plunged since peaking at $107 a barrel in June.
Several oil production and exploration companies tumbled as the slide in oil prices deepened Monday.
In energy futures trading, wholesale gasoline fell 2.5 cents to close at $1.535 a gallon, while heating oil fell 1.1 cents to close at $1.951 a gallon.
Natural gas fell 32 cents to close at $3.144 per 1,000 cubic feet. Natural gas has fallen 15 percent over the past three trading sessions to its lowest level since January 2013 on forecasts for milder winter weather.
Bond prices rose. The yield on the 10-year Treasury note fell to 2.16 percent.
Metals prices closed lower. Gold fell $16.20 to $1,179.80 an ounce. Silver fell 34 cents to $15.69 an ounce and copper lost a penny to $2.87 a pound.