It is a sorry fact of American political life that campaigns get ugly, often in their final weeks. But Senator John McCain and Gov. Sarah Palin have been running one of the most appalling campaigns we can remember.

They have gone far beyond the usual fare of quotes taken out of context and distortions of an opponent’s record  into the dark territory of race-baiting and xenophobia. Senator Barack Obama has taken some cheap shots at Mr. McCain, but there is no comparison.

Despite the occasional slip (referring to Mr. Obama’s “cronies” and calling him “that one”), Mr. McCain tried to take a higher road in Tuesday night’s presidential debate. It was hard to keep track of the number of times he referred to his audience as “my friends.” But apart from promising to buy up troubled mortgages as president, he offered no real answers for how he plans to solve the country’s deep economic crisis. He is unable or unwilling to admit that the Republican assault on regulation was to blame.

Ninety minutes of forced cordiality did not erase the dismal ugliness of his campaign in recent weeks, nor did it leave us with much hope that he would not just return to the same dismal ugliness on Wednesday.