Technology companies powered a broad rally for U.S. stocks Thursday, snapping the market's two-day losing streak.
Retailers and industrial companies also notched solid gains, which offset losses in financial stocks. Levi Strauss soared 32 percent as the storied jeans maker went public for the second time.
The S&P 500 index rose 30.65 points, or 1.1 percent, to 2,854.88.
The Dow Jones Industrial Average gained 216.84 points, or 0.8 percent, to 25,962.51.
The Nasdaq composite climbed 109.99 points, or 1.4 percent, to 7,838.96.
The Russell 2000 index of smaller-company stocks picked up 19.25 points, or 1.2 percent, to 1,562.41.
For the week:
The S&P 500 is up 32.40 points, or 1.1 percent.
The Dow is up 113.64 points, or 0.4 percent.
The Nasdaq is up 150.43 points, or 2 percent.
The Russell 2000 is up 8.87 points, or 0.6 percent.
For the year:
The S&P 500 is up 348.03 points, or 13.9 percent.
The Dow is up 2,635.05 points, or 11.3 percent.
The Nasdaq is up 1,203.68 points, or 18.1 percent.
The Russell 2000 is up 213.85 points, or 15.9 percent.