A controversial Downing Street aide who suggested black people were mentally inferior has resigned from his post.

Andrew Sabisky announced he was quitting his role as a contractor for No 10 following a major backlash over his past comments on eugenics, race and the enforced uptake of contraception.

The 27-year-old is understood to have been hired as part of Dominic Cummings‘ drive to recruit ”misfits and weirdos” to help shake up government.

In a post on Twitter, he said: “The media hysteria about my old stuff online is mad but I wanted to help HMG not be a distraction.

“Accordingly I’ve decided to resign as a contractor.

“I hope No10 hires more ppl [sic] w/ good geopolitical forecasting track records and that media learn to stop selective quoting.

“I know this will disappoint a lot of ppl [sic] but I signed up to do real work, not be in the middle of a giant character assassination: if I can’t do the work properly there’s no point, and I have a lot of other things to do w/ [sic] my life.”

His departure comes after the prime minister faced intense pressure to sack Mr Sabisky over historic comments, where he:

- Called for the young to undergo compulsory contraception to prevent the creation of “a permanent underclass”

- Disparagingly compared women’s sport to the Paralympics

- Suggested that black people were more likely than whites to be “close to mental retardation”

Boris Johnson's cabinet reshuffle: Who's in and who's out Show all 17 1 /17 Boris Johnson's cabinet reshuffle: Who's in and who's out Boris Johnson's cabinet reshuffle: Who's in and who's out Out: Sajid Javid Resigned as Chancellor of the Exchequer. Mr Javid’s departure comes just one month before a crucial budget, intended to chart the course for the new government – and makes him the shortest-serving chancellor for more than 50 years Getty Boris Johnson's cabinet reshuffle: Who's in and who's out In: Rishi Sunak Promoted from Chief Secretary to the Treasury to Chancellor of the Exchequer after the dramatic resignation of Sajid Javid Getty Boris Johnson's cabinet reshuffle: Who's in and who's out Out: Esther McVey Sacked as housing minister AFP via Getty Boris Johnson's cabinet reshuffle: Who's in and who's out Out: Andrea Leadsom Sacked as business secretary EPA Boris Johnson's cabinet reshuffle: Who's in and who's out Changed role: Alok Sharma Appointed business secretary (previously international development secretary). He has also been put in charge of the UK’s COP26 climate change summit PA Boris Johnson's cabinet reshuffle: Who's in and who's out Out: Attorney General Geoffrey Cox Resigned as the government's most senior law officer AFP via Getty Boris Johnson's cabinet reshuffle: Who's in and who's out In: Suella Braverman Appointed Attorney General and she will attend cabinet EPA Boris Johnson's cabinet reshuffle: Who's in and who's out Out: Theresa Villiers Sacked as environment secretary PA Boris Johnson's cabinet reshuffle: Who's in and who's out In: George Eustice Appointed environment, food and rural affairs secretary. He was a farming and fisheries minister Reuters Boris Johnson's cabinet reshuffle: Who's in and who's out Changed role: Anne-Marie Trevelyan Appointed international development secretary (previously parliamentary under-secretary for defence) Getty Boris Johnson's cabinet reshuffle: Who's in and who's out Out: Julian Smith Sacked as Northern Ireland secretary Reuters Boris Johnson's cabinet reshuffle: Who's in and who's out In: Brandon Lewis Appointed Secretary of Northern Ireland Reuters Boris Johnson's cabinet reshuffle: Who's in and who's out In: Stephen Barclay Appointed chief secretary to the Treasury PA Boris Johnson's cabinet reshuffle: Who's in and who's out In: Oliver Dowden Appointed culture secretary, succeeding Nicky Morgan Getty Boris Johnson's cabinet reshuffle: Who's in and who's out Out: Chris Skidmore Sacked as eucation minister Getty Boris Johnson's cabinet reshuffle: Who's in and who's out Out: Nus Ghani Sacked as transport minister Chris McAndrew/UK Parliament/CC BY 3.0 Boris Johnson's cabinet reshuffle: Who's in and who's out Out: George Freeman Sacked as transport minister Getty

As the row deepened, Sky News found further comments under Mr Sabisky’s name in 2014, which suggested there could be “genetic reasons” for differences between the races in intelligence and suggested this could be taken into account in immigration policy.

The post said: “There are excellent reasons to think the very real racial differences in intelligence are significantly – even mostly – genetic in origin, though the degree is of course a very serious subject of scholarly debate.”

His appointment triggered public criticism from several Tory backbenchers as well as private disquiet among MPs.

Tory MP William Wragg said his presence was a “poor reflection on the government”, saying: “‘Weirdos’ and ‘misfits’ are all very well, but please can they not gratuitously cause offence.”

In a thinly-veiled jibe at Mr Cummings, he added: “I cannot be the only one uncomfortable with recent No 10 trends.”

Former Tory minister Caroline Nokes, chairwoman of the Commons Women and Equalities Committee, said: “I don’t know him from a bar of soap, but don’t think we’d get on ... Must be no place in government for the views he’s expressed.”

Labour party chairman Ian Lavery welcomed his resignation but said the prime minister had questions to answer on the appointment and whether he agreed with Sabisky’s ”vile views”.

He said: “It’s right that Andrew Sabisky is no longer working in government. He should never have been appointed in the first place.

“After No 10 publicly stood by him today, Boris Johnson has serious questions to answer about how this appointment was made and whether he agrees with his vile views.”

Downing Street did not comment on Monday night but earlier, a No 10 spokesman said: “I’m not going to be commenting on individual appointments.”