The S&P 500 and the Dow Jones Industrial Average ended 2020 at more record highs Thursday, closing out one of the most tumultuous years in recent memory.

The S&P 500 rose 0.6% and ended the year up 16%, or roughly 18% including dividends. 2020 saw a breathtaking nosedive in markets in the spring as the coronavirus took hold, followed by steady gains in the months to come as hopes built for an eventual return to something like normal.

Several overseas markets were closed for holidays, and U.S. markets will be closed for New Year’s Day on Friday.

Health care, financial and communications companies held up well in muted trading. A mix of technology, retail and travel-related stocks fell the most.

Markets were mostly quiet early into the final day of trading for the year.