Tuesday was a momentous occasion for the stock market, as some of the most visible market benchmarks rose to record levels. The Dow Jones Industrial Average (^DJI 0.69%) topped the 30,000 mark for the first time ever, while the S&P 500 (^GSPC 0.61%) also set a new closing high. Even the Nasdaq Composite (^IXIC 1.30%), which had been quicker to set new records earlier in 2020, finished just shy of its high-water mark.

Today's stock market

Index

Percentage Change

Point Change

Dow

+1.54%

+455

S&P 500

+1.62%

+58

Nasdaq Composite

+1.31%

+156

Data source: Yahoo! Finance.

Yet when you look closely at how the stock market fared, a couple of sectors really stand out. Energy stocks were the best performers overall, climbing on hopes that a coming end to the coronavirus crisis could spur a return to more normal levels of energy use. But with energy now making up a relatively small portion of the overall stock market, the gains in financial stocks had even more influence in spurring investors to more optimistic viewpoints.

A crude awakening

It's easy to understand what drove energy stocks higher. Crude oil prices jumped 4% on Tuesday, flirting with the $45 per barrel level. Oil markets are looking closely at a possible recovery in demand if the COVID-19 pandemic gets resolved through recent advances in vaccine and treatment options. That lifted the Energy Select Sector SPDR (XLE -2.41%) more than 5%.

Sunset silhouetting an oil well, derrick, and workers.

Image source: Getty Images.

Players across the spectrum did well. Major oil giants got a nice boost, with ExxonMobil (XOM -2.88%) climbing 7%. Refinery stocks continued to claw back ground lost earlier in the year, with Valero Energy (VLO -2.47%) leading the way with a 4% rise. And oilfield services stocks like Halliburton (HAL -3.01%) were also up on the prospects for exploration and production companies boosting back up their activity levels and needing more materials and services in 2021 and beyond.

The major assumption behind the COVID-19 investing thesis is that when energy demand rises, it will go toward fossil fuels. That seems increasingly in question, especially with the huge rise in interest in electric vehicles and renewable energy more broadly. Nevertheless, in the short run, optimism in the oil patch could send traditional energy stocks considerably higher.

Banking on a rebound

The financial sector didn't do quite as well as energy, with the Financial Select Sector SPDR (XLF -0.38%) rising 3.5%. But with financial institutions carrying much higher total market capitalizations than energy stocks right now, the gain had a bigger influence on the stock market at large.

Big banks performed the best in lifting the sector. Among retail players, Bank of America (BAC -0.96%) led the way higher with a nearly 6% gain, while JPMorgan Chase (JPM -0.58%) weighed in with a rise of nearly 5%. On the investment side, Morgan Stanley (MS -0.34%) had a healthy gain of 5.5%.

Yet there were also gains elsewhere. Insurance conglomerate Berkshire Hathaway (BRK.A -0.57%) (BRK.B -0.40%) added to its recent run with a 2% gain, while fund giant BlackRock (BLK) rose almost 2.5%.

Banks would benefit greatly from additional economic stimulus from the federal government, and that's looking more likely in the coming months. Meanwhile, the sector has gotten beaten down badly throughout 2020, and that has value investors chomping at the bit to reap the rewards of a bounce.

Give thanks

It's easy to look at high-profile tech stocks as driving markets higher. But when you look more closely, you'll often find pockets of strength in places you wouldn't otherwise notice. It's important for investors to keep that in mind as they look for the best investments for 2021.