U.S. stocks rallied to their best day in months on Friday as Wall Street’s roller coaster suddenly shot back upward. That still wasn’t enough to keep the U.S. market from a fourth straight losing week, its longest such streak since August.

The S&P 500 jumped 2.1% a day after closing more than 10% below its record for its first “correction” since 2023. The last time the index shot up that much was the day after President Donald Trump’s election, when Wall Street was focusing on the upsides of Trump’s return to the White House.

The Dow Jones industrial average climbed 674 points, or 1.7%, and the Nasdaq composite jumped 2.6%.

One piece of uncertainty hanging over Wall Street may be clearing after the Senate made moves to prevent a possible partial shutdown of the U.S. government.

Ulta Beauty jumped 13.7% after the beauty products retailer reported stronger profit for the latest quarter than analysts expected.

Gains for Big Tech stocks and companies in the artificial-intelligence industry also helped support the market.

Nvidia rose 5.3% to trim its loss for 2025 so far below 10%. Apple climbed 1.8% to pare its loss for the week, which at one point had been on pace to be its worst since the 2020 COVID crash.

All told, the S&P 500 rose 117.42 points to 5,638.94. The Dow climbed 674.62 to 41,488.19, and the Nasdaq composite rallied 451.07 to 17,754.09.

In the bond market, Treasury yields rose to recover some of their sharp recent losses. The yield on the 10-year Treasury climbed to 4.31% from 4.27% late Thursday and from 4.16% at the start of last week.

— Associated Press