Stocks gained in a short Friday session to close near a record high, capping a five-day rally that helped the S&P 500 index erase nearly all its losses from earlier in the month.

The S&P 500 rose 36 points, or 0.5%, to close at 6,849, 42 points shy of its Oct. 28 record. The Dow Jones Industrial Average increased 289 points, or 0.6%, to close at 47,716. The tech-heavy Nasdaq Composite rose 0.7% on Friday but ended November with a decline of 1.5% because of losses for some big tech stocks.

Stock indexes closed at 1 p.m. EDT on Friday due to the Thanksgiving holiday.

The multi-day rebound came after a largely volatile month for stocks, sparked by concerns about a possible bubble in artificial intelligence and tech stocks. AI chipmaker Nvidia lost 1.8% Friday and closed the month with

See Full Page