The Dow Jones Industrial Average’s first record close in three months comes amid a market drawing increasingly bright lines between what it views as winners and losers in a Donald Trump presidency.

Consider that the 30-stock gauge’s 218-point ascent Thursday happened the same day the Nasdaq 100 Index dropped the most since September, their biggest divergence since the internet bubble burst. Weakness in technology stocks and a handful of defensive industries that soared in the first half held the S&P 500 Index’s gain to roughly a fifth of the Dow’s.

The surge in stocks following a presidential election echoed 1996 and 1972, when the blue-chip index made fresh highs just after victories by Bill Clinton and Richard Nixon.

On the upside were financial shares, perceived beneficiaries should Trump make good on threats to dismantle the Dodd-Frank Act, as well as industrial and materials stocks in anticipation of infrastructure spending. Along with technology shares, pain was felt in high-dividend industries such as household product makers, utilities and phone companies as bond yields surged.

“People are going through the possibilities about what Washington looks like today and what Washington can do or not do for them,” said John Manley, who helps oversee about $233 billion as chief equity strategist for Wells Fargo Funds Management in New York. “Corporations feel there’s a less restrictive hand. People may take that as a positive. It’s the end of the uncertainty.”

The Dow rose 218.19 points, or 1.2 percent, to 18,807.88 at 4 p.m. in New York, topping its Aug. 15 record. The Nasdaq 100 Index lost 1.6 percent. The S&P 500 Index advanced 0.2 percent and the small-cap Russell 2000 Index jumped 1.6 percent and is up 4.7 percent since Trump’s election.

Amazon.com Inc. fell 3.8 percent to lead the rout in technology. JPMorgan Chase & Co. jumped 4.6 percent and Goldman Sachs Group Inc. climbed 4.3 percent. Drugmakers advanced, led by Pfizer Inc.’s 4.3 percent rally. Caterpillar Inc. added 2.5 percent. Procter & Gamble Co. plunged 3.5 percent.

Financial and health-care industries have surged since Trump’s surprise win on Tuesday, rallying on expectations that the president-elect and Republican-controlled Congress will roll back regulations. Trump’s promise to revive American infrastructure means commodities used to build everything from airports to bridges will benefit under his presidency, according to Goldman Sachs Group Inc.

“Yields are moving their way higher, that’s good for banks,” said Art Hogan, chief market strategist and director of research for Wunderlich Securities in Boston. “If there’s going to be a friendlier regulatory environment that’s going to be good for banks. That’s the tailwind behind financials we haven’t seen for a long time.”

While opinions vary about what’s behind the tech rout, one possibility was concern about the impact of Trump’s policies on trade overseas, where U.S. technology companies thrive. Others saw a rational retreat for a group that through Election Day had surged 11 percent in 2016, or even the potential for retaliation by the president-elect against an industry that didn’t exactly cozy up to him during the campaign.

Department-store stocks rallied. Kohl’s Corp. jumped 12 percent after saying back-to-school sales were strong. Macy’s Inc. surged 5.6 percent after hiring Brookfield Asset Management to squeeze more money out of its real estate holdings. The largest U.S. department-store company posted another quarter of declining sales. Nordstrom Inc. surged 7.2 percent and Urban Outfitters Inc. added 5.6 percent.

The CBOE Volatility Index rose 3.7 percent on Thursday. The measure of market turbulence known as the VIX reached a four-month high on Friday. U.S. stocks had been heavily hedged as volatility surged leading up to the vote on speculation a Trump win had the potential to rattle markets as he had pledged to clamp down on international trade deals, while adopting divisive rhetoric throughout his campaign.

In the 22 elections going back to 1928, the S&P 500 has fallen 15 times the day after polls close, for an average loss of 1.8 percent. Stocks reversed course and moved higher over the next 12 months in nine of those instances, according to data compiled by Bloomberg.

With the election uncertainty out of the way, investors are also weighing prospects for the timing of the Federal Reserve’s next rate increase. Odds for a December move have increased to 82 percent from 78 percent a week ago. A report today showed jobless claims declined from an almost three-month high ahead of the election.

This article was provided by Bloomberg News.