At one level, it’s not hard to see why farmers supported Trump. Hostility to nonwhite immigrants was central to his campaign, and such hostility tends to be highest in places where there aren’t actually many immigrants. So rural America, with its still tiny immigrant population, was a receptive audience for his fear-mongering. More generally, Making America Great Again — which was basically about setting back the clock racially and culturally — was a message that played well in places that still tend to think of themselves (and are told by politicians to think of themselves) as the Real America, as opposed to the big metropolitan areas where most Americans actually live.

On the other hand, while farm country may be notably lacking in ethnic diversity and feels generally distrustful of globalists, the farm economy is in fact deeply integrated with and dependent on world markets. On the eve of Trump’s trade war, America exported 76 percent of its cotton production, 55 percent of its sorghum, half its soybeans, and 46 percent of its wheat.

Overall, U.S. agricultural exports are almost 40 percent of the value of farm production, up from just 15 percent circa 1970. Globalization hurt some parts of U.S. manufacturing, with particularly harsh effects on some small industrial cities. But the rise of China and the growth of world trade have been nothing but good news for farmers.

And here’s the thing: It shouldn’t have been hard to predict that Trumponomics would be bad for farmers. Trump’s desire for a trade war was out in the open from the beginning; protectionism is right up there with racism and anti-environmentalism as one of his core values. And a trade war was bound to hurt farm exports. Did anyone really imagine that China, an economic superpower with its own fierce nationalism, wouldn’t retaliate against U.S. tariffs?

So what were farmers thinking? My guess is that they let the will to believe override their judgment. Trump seemed like their kind of guy. He certainly seemed to share their dislike for urban elites who, they imagined, looked down on people like them. So they convinced themselves that he knew what he was doing, that he would win his trade war and that they would be among the victors sharing the spoils.