Anyone with confidence in the American people (and I have quite a lot of it) had to believe that Donald Trump’s unpreparedness, instability and just plain meanness would catch up with him eventually. This, as the polls show, is what happened over the past week or so. Simply by revealing who he really is, Trump sent millions of voters fleeing him in disgust.

But understanding what still attracts many voters to Trump is important, not only to those who want to prevent Trump from staging a comeback but also to anyone who wants to make our democracy thrive in the long run. Those of us who are horrified by Trump’s hideous lack of empathy need empathy ourselves.

It’s certainly true that Trump appeals to outright racists and nativists. He is, first and foremost, the product of a Republican Party that has exploited extremism since President Obama took office. GOP leaders should be called to account whenever they try to prettify Trump by ignoring his assaults on Mexican Americans and Muslims, or when they disregard his checkered business record that belies his pretensions of being a friend to the working class.

Trump further damaged his credibility as a paladin of the downtrodden on Friday by naming what The Post’s Jim Tankersley called “a new team of ultra-rich financiers and businessmen” as his core economic advisers.

Nonetheless, there should be no ignoring the real distress Trump voters have experienced . As a practical matter, we will not ease the divisions in our country that his candidacy has underscored if we do not deal with the legitimate grievances of his supporters. As a moral matter, writing off Trump voters as unenlightened and backward-looking is to engage in the very same kind of bigoted behavior that we condemn in other spheres.

Democratic presidential nominee Hillary Clinton leads her Republican opponent Donald Trump by 8 points in a new Washington Post/ABC News poll. The poll also found a majority of voters see both candidates as dishonest. (Bastien Inzaurralde/The Washington Post)

Let’s begin by disentangling the causes of both Trumpism and the related rise of far-right parties in Europe.

In a timely paper that will be presented at next month’s American Political Science Association meeting, “Trump, Brexit, and the Rise of Populism,” Ronald F. Inglehart of the University of Michigan and Pippa Norris of Harvard’s Kennedy School of Government argue that while there is undeniably an economic element in the ascendancy of the extreme right in the West, the key cause is “an angry and resentful counter-revolutionary backlash” to cultural changes since the 1970s.

They highlight the role of “anti-immigrant attitudes, mistrust of global and national governance,” as well as “support for authoritarian values.” Voters for the European far right look like Trump backers: “the older generation, men, the less educated, the religious, and ethnic majorities.”

So, yes, the new right-wing populism may not be primarily about inequality. But Inglehart and Norris are careful to note that “structural changes in the workforce” and globalized markets may “heighten economic insecurity” and sharpen the negative reaction of cultural traditionalists.

And on the ground, says Rep. Elizabeth Esty (D-Conn.), the sense of “disrespect” felt by “people who have lost work to new machines, technology and, in some cases, globalization” is palpable. This is what links cultural unease to economic anguish. Esty, whose district includes ailing industrial cities such as Waterbury and New Britain, has been warning Democrats for months about Trump’s appeal to displaced workers.

“I do not disrespect the people who support him,” Esty said of Trump. “I find him loathsome, but what he has tapped into is real.”

Fred Yang, a Democratic pollster, pointed to NBC News/Wall Street Journal surveys showing that voters who say the Great Recession is still having an impact on them are more likely than other voters to support Trump.

Republican leaders and former security officials discussed Republican presidential nominee Donald Trump’s national security qualifications on political shows on Aug. 7. (Bastien Inzaurralde/The Washington Post)

And Eric Hauser, strategic adviser at the AFL-CIO, said that both parties need to face the obvious: that “there is a lot of rage in this country.”

“People have been angry for more than a generation about their difficulty in moving ahead despite their best efforts,” he said. Noting that most policy proposals on behalf of workers are too timid, he added: “There has been too much acceptance on the part of elites, including Democrats, that a little bit of trying is good enough.”

Hillary Clinton is clearly aware of the fury. Speaking to organizations of African American and Hispanic journalists on Friday, she noted that while some of Trump’s appeal is “xenophobic and racist and misogynistic and offensive,” his foes should “not lose sight of the real pain that many Americans are feeling because the economy has left them behind.” During Saturday night’s Olympic broadcast, her campaign ran a spot with a populist message on taxes, outsourcing and job creation.

If the country is lucky, Trump will continue to do an excellent job of defeating himself. His racism and sexism are leading nonwhite voters and women to form a durable front of opposition. But his voters should not be demeaned or ignored, and his rise should shatter the complacency of the comfortable.

Read more from E.J. Dionne’s archive, follow him on Twitter or subscribe to his updates on Facebook.