Call it the Archie Bunker revolt.

Republican Donald Trump pulled off the most stunning victory in American presidential history by drawing on the votes of working-class white men who used to form a bastion of support in a Democratic citadel.

Instead of reaching out to women and minorities as Republicans had hoped, Trump flipped the script. In Tuesday’s presidential election, the wealthy real-estate magnate won 72% of the vote of white men without a college degree, exit polls show.

Trump also won the male vote by 12 percentage points, offsetting a 12-point advantage for Clinton among women.

In the famous 1970s television show “All in the Family,” Bunker was a cranky but fundamentally decent working-class stiff who rebelled at the countercultural shift that followed in the years following Woodstock. Many supporters of Trump appear to reject some of the sea changes taking place nowadays as well, for economic and cultural reasons.

The loss of millions of manufacturing jobs due in part to free-trade agreements, for instance, and the shift toward a service economy has alienated millions of whites, especially outside the major cities. They still constitute the single biggest voting bloc in the United States.

Those without college degrees have suffered more economically, particularly in the wake of the Great Recession. It’s harder for them to find jobs and wages are stagnant.

Also read:The five worst consequences of Donald Trump’s triumph

The smoldering resentment become a beacon of opportunity for Trump, a celebrity businessman who’s never held public office or been much involved in American politics. He based his campaign slogan, “Make America Great Again” — on curbing illegal immigration, terminating free-trade deals he saw as unfavorable to the U.S. and bringing back jobs to America.

His unorthodox and at times rough-hewn approach turned off uppercrust Republicans and was mocked by Democrats, a mistake that may have cost Hillary Clinton.

One of the signature moments of the campaign occurred in September, when she told rich Democratic donors in New York that half of Trump supporters were a “basket of deplorables. Racist, sexist, homophobic, xenophobic, Islamaphobic — you name it.”

By making fun of Trump and branding him as unfit for office, Clinton and President Barack Obama inadvertently intensified his support among blue-collar whites in states where the working class used to be reliably Democratic. Trump pulled off key upsets in Michigan and Wisconsin, so-called Rust Belt states that have not voted for a Republican president since Ronald Reagan in the 1980s.

“In some ways it’s a realignment in the Midwest,” Reince Preibus, head of the Republican National Committee, said Wednesday on the “Today” show.

What had been an impregnable “blue wall” of Democratic support has now been breached.

West Virginia tells the story over time.

Also read: What I got wrong about Donald Trump

Bill Clinton won the state in 1996 by 15 points over Republican Bob Dole to maintain a long tradition of Democratic dominance. But a leftward shift in a Democratic party that eschewed the traditional fossil-fuel industry and took up the cause of progressive environmentalism has now made West Virginia rock-red Republican. Trump won an astonished 69% of the vote to just 27% for Clinton.

To add to Clinton’s troubles, she was never able to stitch together the same coalition that helped Obama easily win two terms. African-American support for Clinton was down, her margin among Hispanics was smaller and young people were less enamored in a political figure who’s been on the national scene for three decades, exit polls show.

Add it all up and that’s how a candidate with the highest disapproval numbers in history won election. Some 60% of voters said they had an unfavorable opinion of Trump and only 38% said he was qualified to be president, according to exit polls.

The strategy adopted by Trump, however, is unlikely to work for Republicans in the future.

Working-class whites are shrinking as a percentage of the population, and that trend is unstoppable. As with Obama, Trump built a coalition that was more attracted to the candidate than to the party at large.