All three major U.S. stock indexes set record closing highs on Monday.
Post-election rally continues as energy and other commodity-related shares gained and Facebook led a jump in technology.
Small caps added to recent gains as well, pushing the Russell 2000 index to a record high close. The session marked the first time all four indexes hit closing records on the same day since Dec. 31, 1999.
Stocks have mostly rallied since the Nov. 8 U.S. election, with investors buying shares of banks, health care and other companies expected to benefit from President-elect Donald Trump's policies.
The energy index jumped 2.2%, leading gains among major S&P sectors, as U.S. oil prices climbed 3.9% on hopes that OPEC would agree to an output cut next week lifted oil prices.
Data from TrimTabs Investment Research showed investors moved $45.7 billion into U.S.-listed equity exchange-traded funds in the eight trading days ended Thursday, the biggest eight-session inflow on record.
The Dow Jones industrial average ended up 88.76 points, or 0.47% at 18,956.69, while the S&P 500 .SPX gained 16.28 points, or 0.75%, to 2,198.18 and the Nasdaq Composite .IXIC added 47.35 points, or 0.89%, to 5,368.86.
The S&P 500 had last set a closing record on Aug. 15. All three major indexes hit record intraday highs as well.
During the regular session, the technology index, which had underperformed other sectors following the election, was up 1.1%. Facebook shot up 4.1%, giving the Nasdaq its biggest boost, after the company announced a $6-billion share buyback program late Friday.
Among the bigger decliners, Tyson Foods shares fell 14.5% after the meat processor forecast a lower-than-expected 2017 profit and said its CEO would step down.
About 6.7 billion shares changed hands on U.S. exchanges, below the 8.1 billion daily average for the past 20 trading days.
The S&P 500 posted 42 new 52-week highs and 3 new lows; the Nasdaq Composite recorded 249 new highs and 24 new lows.