(CNBC) — Stocks fell in choppy trade Tuesday after tech shares pulled back amid concerns trade tensions between the U.S. and China could increase.

The Dow Jones industrial average closed 171 points lower. The 30-stock index climbed 197.79 points at its session high. Microsoft was among the worst-performing stocks on the Dow, falling 2.4 percent.

The S&P 500 declined 0.6 percent with tech falling 1.2 percent. Earlier in the session, tech rose as much as 0.9 percent. The tech-heavy Nasdaq composite dropped 1 percent and snapped a seven-day winning streak. Both S&P 500 and Nasdaq rose as much as 0.7 percent before trading lower.

Note: Read our discussion guidelines before commenting.