London mayor Sadiq Khan has round-the-clock police protection after receiving a deluge of death threats.

The measure was taken after City Hall referred 17 cases to the police in a three-month period last year; 237 threats were made on social media.

The 48-year-old Labour politician, who was MP for Tooting before succeeding Boris Johnson as London mayor, revealed that the “name-calling, trolling and threats to terrorism” had intensified since the 2016 Brexit referendum.

Mr Khan, a practising Muslim, told The Times magazine: “It can’t be right that one of the consequences of me being the mayor of London and a Muslim in public life is that I have police protection.

“The referendum campaign allowed things to come to the surface and normalised things that should not be normalised.”

Brexit racism and the fightback Show all 9 1 /9 Brexit racism and the fightback Brexit racism and the fightback Demonstrators protest against an increase in post-ref racism at London's March for Europe in July 2016 PA Brexit racism and the fightback These cards were found near a school in Huntingdon, Cambridgeshire, the day after the EU referendum Twitter/@howgilb Brexit racism and the fightback LONDON, UK - JULY 16 : A speaker addresses the EDL members at Hyde Park. About a hundred members of The English Defence League (EDL) march on Park Lane for a rally in Hyde Park. The march on 16 July 2016 was heavily policed keeping the group away from the public. (Photo by David Mbiyu/Corbis via Getty Images) Getty Brexit racism and the fightback Romford, Essex, June 25 @diamondgeezer Brexit racism and the fightback A worker at this Romanian food shop was asleep upstairs at the time of this arson attack in Norwich on July 8, but escaped unharmed. Hundreds later participated in a ‘love bombing’ rally outside the shop to express their opposition to racism and their support of the shop owners. JustGiving/Helen Linehan Brexit racism and the fightback This neo-Nazi sticker was spotted in Glasgow on June 26 Courtesy of Eoin Palmer Brexit racism and the fightback But after news emerged of neo-Nazi stickers appearing in Glasgow, some in the city struck back with slogans of their own. Courtesy of Eoin Palmer Brexit racism and the fightback The Peoples Assembly Against Austerity, Black Live Matters and The Socialist Workers Party organised a march on Saturday July 16th in London, United Kingdom, against austerity, cuts and Racism. The groups also marched in solidarity against Tory government policies. (Photo by Gail Orenstein/NurPhoto via Getty Images) Getty Brexit racism and the fightback More signs began to appear in some parts of the UK, created by people who wanted to show their opposition to post-referendum racism Courtesy of Bernadette Russell

Mr Khan said that due to a nationwide rise in racial and religious attacks, he feared the name-calling could lead to “the situation where Jo Cox is murdered or a terrorist can come to London and try to divide communities”.

The mayor previously told The Independent he was concerned that Brexit would cause a spike in hate crime mirroring that following the 2016 EU referendum.

He has been personally targeted by right-wing activists and anti-Islam groups including the UK “yellow vests” and Britain First, who hold him responsible for rising violent crime and other grievances.

Extremists frequently post doctored images of Mr Khan and racist memes on social media, while the Finsbury Park terrorist attacked him in a suicide note written before he ploughed a van into Muslims in 2017.

Darren Osborne told his trial that it would have been like “winning the lottery” to murder Mr Khan, if he had been able to reach the protest that was his original target.

Earlier this year, Mr Khan told The Independent the vitriol came from “a small minority of people who use social media to articulate their hatred towards me” and added: “The key thing is to not allow haters to succeed by letting it affect you. It’s distressing for friends and family but there are more of those that are decent than are horrible and nasty.”

In September, a balloon depicting Mr Khan was flown above parliament, after being crowdfunded by people angered by a previous stunt targeting Donald Trump during the US president’s visit.

Criticism from right-wing pundits appears to have filtered up to the White House, with Mr Trump accusing Mr Khan of doing a “very bad job” on crime and terrorism and attacking him on Twitter in the aftermath of the London Bridge attack.

Mr Khan previously demanded action from social media firms to tackle hate speech, warning that the level of abuse he regularly received could deter other people from minority backgrounds from entering politics.

Sadiq Khan condemns Trump’s 'preposterous' remarks suggesting he and immigration caused increased crime

After reading out tweets including death threats and racist abuse in March 2018, he said: “I could go on and on, but I won’t. I don’t read these out to be portrayed as a victim or to ask for sympathy.

“But ask yourself this – what happens when young boys and girls from minority backgrounds see this kind of thing on their timelines – or experience it themselves?”

During the 2016 mayoral elections, Mr Khan’s rival Zac Goldsmith was widely condemned following his attempt to secure a victory by waging a campaign accused of exploiting anti-Muslim prejudices.