U.S. equities closed mostly higher on Friday as Wall Street capped a strong first-half performance.
The S&P 500 rose 0.1 percent, with energy and consumer discretionary leading advancers. The index has gained 8.3 percent this year, notching its best first-half gains since 2013, when it gained 12.6 percent.
The Dow Jones industrial average rose about 63 points, with Nike contributing the most gains. The 30-stock index has risen 8 percent through the first six months of the year, marking its best start to a year since 2013.
The Nasdaq composite closed just below breakeven. The tech-heavy index,however, has easily outperformed the Dow and the S&P this year, surging 14.1 percent and posted its largest first-half gains since 2009.
"We're off to a superb start and why not? The data have been good," said Mike Baele, managing director at U.S. Bank Private Client Reserve. "But what's really been positive have been earnings and the forecast for the rest of the year are pretty good."
That said, the major indexes ended the first half, and the second quarter, on a sour note. The Dow, S&P and Nasdaq closed the week as technology stocks have rolled over.
Tech has been the best-performing sector for most of 2017, rising more than 15 percent in the period. But over the past month it has dropped more than 2 percent.