U.S. stocks fell sharply, erasing an early gain, as the market closed in on its third weekly decline in four weeks, and more in Friday’s Stock Market Update.

The latest wave of selling sent the Dow Jones Industrial Average down more than 500 points. The blue chip average is now down more than 1,000 points this week.

Losses in technology and health care stocks accounted for much of the market’s slide. Retailers and other consumer-focused companies, banks and industrial stocks also took heavy losses.

Utilities, which investors favor when they’re fearful, eked out a slight gain. Crude oil prices rose on news that OPEC members agreed to cut production next year.

The government said job growth in November fell short of economists’ expectations.

STOCK MARKET UPDATE

The S&P 500 index fell 62 points, or 2.3 percent, to 2,633 at closing time. The Dow dropped 559 points, or 2.2 percent, to 24,388.

The Nasdaq composite slid 219 points, or 3.1 percent, to 6,969. The Russell 2000 index of small-company stocks gave up 26 points, or 1.8 percent, to 1,450.

The S&P 500 and Dow are now in the red for the year. The Nasdaq was holding on to a modest gain.

“We’re in a market where investors just want to sell any upside that they see,” said Lindsey Bell, investment strategist at CFRA. “The volatility we’ve seen the last couple of weeks has been pretty extreme in both directions.”

The benchmark S&P 500 was on track to cap a turbulent week of trading with its third weekly drop in four weeks. That would represent a big swing from just last week, when the index had its best weekly gain in nearly seven years.

Volatility has gripped the market since early October, reflecting investors’ worries that the Federal Reserve might overshoot with its campaign of rate increases and put the brakes on the U.S. economy.

Traders also fear that a prolonged trade dispute between the U.S. and China could slow the global economy and crimp corporate profits. Uncertainty over both those issues helped drive the market’s sell-off this week.

“The Fed has taken the punch bowl away in getting back to rates where they are today,” said Doug Cote, chief market strategist for Voya Investment Management. “We’re also going to get back to more normal volatility.”

Oil prices rose after OPEC countries agreed to reduce global oil production by 1.2 million barrels a day for six months, beginning in January. The move would include a reduction of 800,000 barrels per day from OPEC countries and 400,000 barrels per day from Russia and other non-OPEC nations.

The news, which had been widely anticipated, pushed crude oil prices higher. U.S. benchmark crude jumped 4.3 percent to $53.69 a barrel in New York. Brent crude, used to price international oils, gained 4.7 percent to $62.87 a barrel in London.

The pickup in oil prices sent some energy stocks higher. EOG Resources gained 2.7 percent to $104.87.

A sell-off in technology stocks weighed on the market. Hewlett Packard Enterprise slumped 7.7 percent to $14.78.

Health care sector stocks, the biggest gainer in the S&P 500 this year, took some of the heaviest losses. Medical device company Cooper lost 10.8 percent to $247.10

Ulta Beauty slid 11.2 percent to $260 after the cosmetics retailer’s latest quarterly report card exceeded analysts’ expectations, but its earnings outlook disappointed traders.

Tobacco company Altria Group, which makes Marlboro cigarettes, announced a $2.4 billion investment in Cronos Group, a Canadian medical and recreational marijuana company. Altria’ shares got a boost from the announcement, but the gain faded by late afternoon. The stock fell 0.2 percent to $54.28.

The Labor Department said U.S. employers added 155,000 jobs in November, a slowdown from recent months but enough to suggest that the economy is expanding at a solid pace despite sharp gyrations in the stock market. The unemployment rate remained at 3.7 percent, nearly a five-decade low, for the third straight month. Average hourly pay rose 3.1% from a year ago, matching the previous month’s figure, which was the best since 2009. The jobs figure was less than many economists forecast, but few saw the report as a sign of a broader slowdown.

Bond prices rose, sending yields slightly lower. The yield on the 10-year Treasury fell to 2.86 percent from 2.87 percent late Thursday.

The decline in bond yields, which affect interest rates on mortgages and other consumer loans, weighed on banks, which make more money when rates are rising. Morgan Stanley slid 3.2 percent to $41.26.

The dollar rose to 112.66 yen from 112.65 yen late Thursday. The euro strengthened to $1.1418 from $1.1373.

Gold gained 0.7 percent to $1,252.60 an ounce. Silver climbed 1.3 percent to $14.70 an ounce. Copper added 0.6 percent to $2.76 a pound.

EUROPEAN STOCK MARKET UPDATE: Germany’s DAX dipped 0.2 percent while the CAC 40 in France rose 0.7 percent. Britain’s FTSE 100 jumped 1.1 percent. Major indexes in Asia finished mostly higher.

Japan’s benchmark Nikkei 225 added 0.8 percent and Australia’s S&P/ASX 200 gained 0.4 percent. South Korea’s Kospi rose 0.3 percent. Hong Kong’s Hang Seng gave up 0.3 percent.