NEW YORK — Worries about the worsening pandemic pushed Wall Street to tap the brakes Tuesday on its big November rally, which had vaulted stocks back to record heights.

Treasury yields also dipped after a report showed U.S. shoppers spent less at retailers last month than economists expected. The numbers underscore how the coronavirus pandemic is worsening and threatens to drag the economy lower, at least in the near term.

Stocks that stormed higher this month on hopes that a vaccine or two may get the global economy back to normal next year receded amid the worries.

The S&P 500 fell 17.38 points, or 0.5%, from its record to close at 3,609.53. It was the first loss for the index in three days.

The Dow Jones Industrial Average also fell from a record, down 167.09, or 0.6%, to 29,783.35. The Nasdaq composite slipped 24.79, or 0.2%, to 11,899.34.

“Today is a good example of how the markets have been pricing in a lot of the good news,” said David Trainer, CEO of investment research firm New Constructs.

Stocks in the pharmacy business were among the biggest drags on the market after Amazon targeted them as the latest industry it is trying to upend. The retailing behemoth opened an online pharmacy Tuesday that allows customers to have prescriptions delivered to their door in a few days.

CVS Health fell 8.6%, Walgreens Boots Alliance dropped 9.6% and Rite-Aid lost 16.3%. Amazon, meanwhile, ticked up 0.1%.

On the winning side was Tesla, which rose 8.2% following an announcement that it will join the S&P 500 index next month. The index is hugely influential, and nearly $4.6 trillion at the end of last year was in funds that mimic the S&P 500.

The electric vehicle company had already soared 388.8% in 2020 before Monday evening’s index announcement. With a total market value rivaling Johnson & Johnson’s and Visa’s, it is set to become one of the biggest stocks in the S&P 500.

The broader stock market slowed Tuesday, though, and the majority of stocks in the S&P 500 were lower.

Boston Scientific dropped 7.9% for one of the largest losses in the index after it issued a voluntary recall for its LOTUS Edge aortic valve system. Analysts said problems with its delivery system essentially mean an end to what was once a promising business.

Sales at U.S. retailers rose 0.3% last month from September, a sharp slowdown from September’s 1.6% growth. The figure also fell short of economists' expectations for 0.5% growth.