Last week, London elected its first-ever Muslim mayor. Sadiq Khan, the son of working-class Pakistani immigrants, triumphed over a Conservative challenger who controversially attempted to implicate Khan with connections to Islamist extremists. The attacks — considered by many to be ill-judged smears — proved futile, and Khan is now the mayor of Europe’s most-populous capital and one of the world’s most diverse and important cities.

His victory comes at a fascinating, tense moment. Britain is poised to hold a referendum next month on its membership in the European Union. Those eager to sever ties with Brussels are, in part, motivated by fear of immigration and Islamist infiltration. Boris Johnson, the boisterous politician Khan replaced as London’s mayor, has become one of the biggest backers of what’s known as the “Brexit” movement.

In the build-up to the mayoral election, Khan warned against the dangers of the nativist populism that has gripped countries on both sides of the pond. He described this impulse in an interview with The Washington Post’s Karla Adam as the “Donald Trump approach to politics,” adding that “it seeks to divide communities rather than unite them.”

Khan went on to convey what he thinks is the symbolism behind his own political success: London exemplifies the virtues of a multicultural, democratic society, a place where “the fact that you might be a son of immigrants, or [from] a poor background, or ethnic or religious minority, isn’t held against you, because you are respected for who you are and what you put in.”

Trump, for his part, indicated last week that he would support the Brexit; in December he left many Londoners bemused and infuriated when he claimed that there were parts of the city that were so “radicalized” that even the police feared to patrol there.

Khan’s own story — he’s the son of a bus driver and grew up to be a human rights lawyer, then a Labour politician — was subsumed by the focus on his faith. In his interview with The Post, he quipped about the problems his religious identity would pose should the presumptive Republican nominee win the U.S. presidential election.

“I’ll need to rush to come to America before November, because if Trump wins, I’ll be banned from coming,” Khan joked.

In subsequent interviews after his victory, he made similar remarks.

“If Donald Trump becomes the president, I’ll be stopped from going there by virtue of my faith,” Khan told Time magazine in an article published Monday. The full conversation included his oft-repeated vow to “be the British Muslim that defeats the extremists, defeats the radicals.”

He also suggested that, as in London, U.S. voters would not ultimately side with the politics of division:

I think Bill de Blasio is doing interesting housing stuff in New York, Rahm Emanuel is doing interesting stuff with the infrastructure bank in Chicago. I want to go to America to meet with and engage with American mayors. If Donald Trump becomes the president I’ll be stopped from going there by virtue of my faith, which means I can’t engage with American mayors and swap ideas. Conservative tacticians thought those sort of tactics would win London and they were wrong. I’m confident that Donald Trump’s approach to politics won’t win in America.

When queried about a potential Muslim ban by the New York Times after Khan's election, Trump said there would "always be exceptions" on who could be admitted to the country. Khan, though, was unmoved.

"This isn't just about me: It's about my friends, my family and everyone who comes from a background similar to mine, anywhere in the world," the new mayor told the BBC on Tuesday.

Khan added: "Donald Trump's ignorant view of Islam could make both our countries less safe: It risks alienating mainstream Muslims around the world and plays into the hands of the extremists."

On Friday, he told NBC News, "I want Donald Trump to come to London so I can introduce myself to him as a mainstream Muslim, very, very comfortable with Western liberal values, but also introduce him to hundreds of thousands, dare I say millions of Muslims in this country, who love being British, love being Western."

Some commentators are echoing Khan’s rhetoric. Roger Cohen, a New York Times columnist, highlighted Khan’s victory as a rejoinder to the fear and anger marshaled by Trump and his ilk. Khan’s election, Cohen wrote, “underscores the fact that terrorist acts hide a million quiet success stories among European Muslim communities.”

Khan's victory also reflected something larger about democratic politics in the 21st century.

“Sadiq Khan’s victory is reassuring because he represents currents in the world — toward global identity and integration — that will prove stronger over time than the tribalism and nativism of Trump," Cohen wrote.

Khan concurs. "I want to educate Donald Trump," said on Friday. "I want to show him that you can be Muslim and be Western."

This post was updated to reflect subsequent remarks made by Khan.

More on WorldViews

Donald Trump and the clash of civilizations

Canada shows how to deal with the world's Trumps: Just ignore them.

Europe's far-right still loves Putin

Donald Trump and the shadow of Europe's far-right