STOP ME IF you’ve heard this one: An outsider politician who owes his station in life to the hundreds of millions he inherited from his father is running a failing campaign for office based on stoking fear of Muslims. The word “failing” — as in 20 points down in the polls days before the election — is a clue that we are speaking about someone other than Donald Trump. In this case, the politician’s name is Zac Goldsmith, and he is the millionaire scion of a prominent British family. He was thought of, until recently, as a mild-mannered Conservative member of Parliament, known mainly for his environmentalism and his sister’s friendship with the late Princess Diana. For the past two months, however, he has generated waves of disgust and, polls suggest, not much sympathy, by pursuing a mayoral campaign filled with racially divisive innuendo about the supposed danger of electing his Labour Party rival, Sadiq Khan, a son of Pakistani Muslim immigrants.

The heavier the defeat for #NastyZac on Thursday, the longer it will be before the Tories dare to run a vile, racist campaign again. Vote! — Pete Sinclair (@pete_sinclair) May 2, 2016

Things reached something of a crescendo over the weekend, when Goldsmith — advised by a political consultant whose website boasts that he was “described by Newt Gingrich as the U.K.’s own ‘Lee Atwater’” — published a dog-whistle appeal to voters in the Mail on Sunday, a right-wing tabloid, that implied Khan, a moderate member of Parliament, would somehow fail to defend the British capital from Islamist terrorists.

Photo: Ben Pruchnie/Getty Images

The piece, which offered nothing more than hyperbolic claims that Khan was linked to extremists through his prior work as a human rights lawyer, ran alongside a photograph of a bus destroyed during the July 7, 2005, terror attacks in London, under the headline: “On Thursday, are we really going to hand the world’s greatest city to a Labour Party that thinks terrorists are its friends?”

The use of that image, and the perverse implication that the Muslim candidate whose own father drove a London bus should be associated with the terrorists who carried out that atrocity, did further damage to Goldsmith’s reputation, energizing his opponents and apparently costing him the support of even some friends and Conservative colleagues. Among those who expressed disgust at the opinion piece were Sayeeda Warsi, a Conservative member of the House of Lords and the first Muslim to serve in a British cabinet, and Goldsmith’s friend Bianca Jagger, who accused him of surrendering to his party’s Australian campaign strategist, Lynton Crosby.

This is not the @ZacGoldsmith I know.

Are we @Conservatives fighting 2 destroy Zac or fighting to win this election? pic.twitter.com/fzYBUDSjMG — Sayeeda Warsi (@SayeedaWarsi) May 1, 2016

I am very disappointed Lynton Crosby has mastermind Zac Goldsmith's racially divisive strategy. The campaign doesn't reflect the Zac I knew — Bianca Jagger (@BiancaJagger) May 2, 2016

Even The Times know that Zac's gone mad pic.twitter.com/q8zGh8jvgo — Charles White (@charleswhite3) May 2, 2016

This effort to play on fears of Islamist terrorism, just days before the voters go to the polls, was perhaps the most blatant part of Goldsmith’s campaign against Khan, but, as Simon Hattenstone explained in The Guardian, it followed a concerted effort to drive a wedge between different parts of London’s large South Asian population. The first phase of the effort, which generated alarm in March, concerned campaign literature mailed to London voters presumed to be Hindus or Sikhs, based on their last names, that seemed designed to exploit anti-Muslim tensions among different faith groups from the Indian subcontinent. One line of attack seemed to be based on the assumption that members of those communities would reject Khan, the British-born son of Pakistanis, either because he did not attend a ceremony to welcome India’s divisive prime minister, Narendra Modi, or might impose a tax on the gold jewelry of their families.

Zac Goldsmith targeting my Hindu name to warn me that about that Muzzer Sadiq Khan. Chip off the old racist block pic.twitter.com/RRmj6dVF4u — Atanu Roy (@atsroy) March 15, 2016

Amazed at traction from shameful Goldsmith letter sent to me on Monday. Divide Sth Asian Londoners at yr peril! https://t.co/tMh8ZGpOjn — Pukkah Preservation (@pukkahpreserve) March 16, 2016

That part of Goldsmith’s campaign led Shazia Awan, a Conservative party activist and former parliamentary candidate from Wales, to speak out about what she described as an “attitude to ethnic minority voters” that recalled colonial-era strategies of divide and rule, which she said have no place in a modern, cosmopolitan Britain.

“I always admired Goldsmith and felt he was a principled Tory, an environmental campaigner, someone who, despite the privilege he was born into, truly loves the real London and the people that make this city great,” Awan wrote in the New Statesman last month. “All I see now is a man who is too weak to stand up to those directing his campaign, and as a result ruining his own reputation and credibility in the fickle pursuit of power.”

Goldsmith’s attempt to position himself as a defender of British Indian culture also led to some inadvertent hilarity when he insisted last month that he loved the genre of Indian cinema known as Bollywood, but was immediately stumped when asked to name a single actor or film that he liked.

After Khan directly accused Goldsmith of running an Islamophobic campaign, the Conservative attempted to connect his rival to extremism by telling the Evening Standard that the Labour candidate had shown “appalling judgment” by speaking at events alongside “repellent” extremists like a Muslim cleric named Suliman Gani.

Hey @ZacGoldsmith. There’s no need to keep pointing at me & shouting ‘he’s a Muslim’. I put it on my own leaflets. pic.twitter.com/EGeRXlPWAa — Sadiq Khan MP (@SadiqKhan) April 11, 2016

That attempt backfired spectacularly when Gani himself revealed photographic evidence that he had also appeared with Goldsmith, and even campaigned for the Conservatives against Khan at last year’s general election over the Labour candidate’s vote for same-sex marriage.

Oh no, I just read that Zac apparently calls me 'one of the most repellent figures in this country'

Dirty politics pic.twitter.com/WWYfIcdU5h — Suliman Gani (@sulimangani) April 13, 2016

I supported @Dan in 2015 general elections, If repellant why @Conservatives wanted my support then @zacgoldsmith pic.twitter.com/uOxdQMXnP7 — Suliman Gani (@sulimangani) April 13, 2016

Worth pointing out that Zac's party voted in majority against gay marriage, while Sadiq Khan voted for and received death threats for it — Nesrine Malik (@NesrineMalik) May 2, 2016

The result of Goldsmith’s campaign is that he not only trails badly in the polls, but has inspired critics like Owen Jones, a Guardian columnist, to call on voters to deliver a landslide victory for Khan in London, where the ethnic minority population is now 44 percent.

Even Ken Livingstone, a former Labour mayor of the capital — who was repudiated by Khan last week, for bringing up Hitler in a debate over anti-Semitism — has expressed sympathy for Goldsmith’s apparent unease at saying things he probably does not believe in a desperate effort to get elected. “Zac looks as if he’s heading for a breakdown, because he’s being forced to behave in a way that isn’t natural to him,” Livingstone told The Guardian last week. “Given the cosmopolitan nature of his family, he can’t possibly believe all this crap.” Goldsmith’s father, Sir James Goldsmith, was Jewish, and his sister, Jemima, converted to Islam in 1995 to marry the Pakistani cricket star-turned-politician Imran Khan. After that marriage dissolved, the candidate’s sister returned to her maiden name, and is now known as Jemima Goldsmith again — except on Twitter, where one of the couple’s two sons insisted that she continue to use the handle @Jemima_Khan. As she noted in March, that has created a fair bit of confusion about the mayoral race among her followers.