Those in the next stage of the contest - , Lisa Nandy, Jess Phillips, Rebecca Long-Bailey and Emily Thornberry - must now gain support from local parties or from affiliate groups, including trade unions before their names are added to the final ballot.
Those through to the deputy leadership race's second round - shadow education secretary , Scottish MP Ian Murray, shadow culture secretary Dawn Butler, shadow justice secretary Richard Burgon and shadow sports minister Rosena Allin Khan - will do the same.
Mr Lewis was in last place in the race to secure 22 nominations from colleagues, but quit after conceding he would not make it through.
ITV News Political Correspondent Paul Brand explains what is next in the Labour leadership contest
But with moments before the 2:30pm deadline, Ms Thornberry's bid was on a knife-edge, with the official list showing she was still short of the required number of signatures.
Mr Burgon also just scraped through, with 22 nominations - three received within the final hour.
Mr Lewis said he was standing aside "in the spirit of pluralism, diversity and generosity", so that his supporters would redistribute their votes elsewhere.
The leadership contest's frontrunner, shadow Brexit secretary Sir Keir, has already got the backing of the UK's largest union, Unison, meaning he is highly likely to succeed to the final ballot, where members, affiliated supporters and registered supporter will elect a winner.
To reach the contest's final stage, candidates must secure backing from either 5% of local Labour parties (Constituency Labour Parties or CLPs) - the threshold would be around 33 CLPs - or from three of its affiliates, two of which must be trade unions.
Those aiming to be deputy leader must also go through the same process.
As the nomination process drew to a close, Sir Keir said: "I'm pleased to have received the support of colleagues in Parliament to make it to the next phase of this contest.
"This has been a good-natured and respectful start to the debate about the future of the Labour Party.
"Lots of important issues have been raised by all the candidates in the race so far."
He appointed Labour MPs Carolyn Harris and David Lammy to act as vice-chairs of his campaign.
Ms Nandy said a "red bridge" uniting support across different wings and regions must be built to prevent the party's demise as she outlined her vision in a speech in Brexit-backing Dagenham, east London on Monday.
Ms Nandy, who is through to the next round of the leadership battle, referenced the so-called red wall of former Labour strongholds across the Midlands and the North as she stressed a need to speak to broad swathes of the nation.
Speaking to ITV News, she said the Labour party's decision to hold hustings only in cities was the "wrong symbol to send to the country".
"We've just suffered a shattering defeat in many of the non-urban areas across this country. We're going to have a debate about the future of how to win them back in areas where we're doing well that are miles away from where they live," she told ITV News Correspondent Paul Brand.
"Just to take Liverpool as an example, or Manchester, we could easily be in places like Bolton, we could easily have the London hustings in one of the constituencies that we either barely hung on or that we need to win back in order to rebuild that road to power."
Ms Nandy also touched on the debate around the party having its first female leader, saying that while it was important the party had"diverse top leadership teams" ultimately the contest was "about how we build a team around that leader that takes us back into government".