The election of a candidate of Islamic Pakistani extraction as mayor of London is a proud moment for Britain and the inclusion of minorities in its politics. It is a credit to London voters who are not predisposed to Labour candidates, as evident by Boris Johnson's long tenure, now finished.
New mayor Sadiq Khan did not have an easy campaign. Previously a South London MP, his Conservative opponent for the mayoralty made much of Mr Khan's occasional associations with Islamic extremists, though they seemed tenuous. He has attended gatherings addressed by hard-line clerics or organisations now banned.
As he explained, politicians do not always have the luxury of vetting who else might be speaking at public events. He could have added that politicians from ethnic or religious minorities are not doing their job unless they speak at these sort of gatherings where they represent a democratic alternative to alienation and terrorism. The attempt to tar Mr Khan with an extremist brush appears to have backfired on the Conservatives.
One former party chairman described it as an "appalling dog whistle campaign" that "lost us the election, our reputation and credibility on issues of race and religion".
Mr Khan's success was the exception to dismal local elections for the Labour Party, whose campaign was hounded by charges of anti-Semitism. Another Islamic MP, Naz Shah of Bradford West, was suspended for a Facebook post two years ago that suggested Israel could be located in the United States. It is a familiar argument of Arab nationalists who still resent the loss of Palestine, but in the heat of the election campaign it was portrayed by Labour's critics as another leftward lurch under its leader Jeremy Corbyn.