How the Dow Jones industrial average fared

A four-day surge in the stock market came to an end on Friday as falling commodity prices brought down energy and mining companies.

Signs of a slowing economy rattled commodity markets. The price of crude oil dropped 2 percent to $91 a barrel as weak U.S. economic reports followed forecasts for lower demand for oil.

The Dow Jones industrial average fell 0.08 of a point, less than 0.01 percent, to 14,865.06.

The S&P 500 index fell 4.52 points, or 0.3 percent, to 1,588.85.

The Nasdaq composite fell 5.21 points, or 0.2 percent, to 3,294.95.

For the week:

The Dow was up 299.81 points, or 2.1 percent.

The S&P 500 was up 35.57 points, or 2.3 percent.

The Nasdaq was up 91.08 points, or 2.8 percent

For the year:

The Dow is up 1,760.92 points, or 13.4 percent.

The S&P 500 is up 162.66 points, or 11.4 percent.

The Nasdaq is up 275.43 points, or 9.1 percent.