The S&P 500 rose Friday on the back of strong earnings from Big Tech names Apple and Amazon to cap off its biggest monthly gain in nearly two years.
The Dow Jones Industrials gained 100.22 points to open Friday at 32,629.85.
The S&P 500 hiked 39.13 points, or 1%, to 4,111.56
The NASDAQ surged 166.99 points to 12,329.58.
The Dow is now up 1.9% for the week, while the S&P 500 and the NASDAQ are up 2.9% each.
The major averages were also on pace for their best month of the year. The Dow is on track for a more than 5% gain for July, which would be its highest since March 2021. The S&P 500 is up by 7.8% for the month and the NASDAQ Composite, while still in bear market territory, is up more than 10%.
Gains from two of the market's biggest stocks led the major averages higher. Amazon shares popped 10% after the e-commerce giant reported stronger-than-expected sales for the previous quarter, while Apple climbed about 2% after posting better-than-expected iPhone revenue.
Chevron gained 5% and Exxon Mobil picked up 2%, to post better-than-anticipated results for the previous quarter.
However, the latest batch of corporate results has been mixed.
Shares of Roku sank more than 26% after the company missed estimates and warned of a slowdown in advertising. Chipmaker Intel dropped 11% after its quarterly results fell short of expectations.
Treasury prices faded a bit, raising yields to 2.69%, from Thursday's 2.67%. Treasury prices and yields move in opposite directions.
Oil prices tacked on $3.50 to $99.92 U.S. a barrel.
Gold prices eked up 50 cents to $1,750.80 U.S. an ounce.