The second 2020 Dem debate matchups are set: Which candidates will face off in Detroit?

The second Democratic primary debate is on July 30 and 31 at the Fox Theatre in Detroit, Michigan.

WASHINGTON – Democrats will face off on the debate stage later this month, and the lineup for the two-night event was revealed Thursday.

Twenty Democratic presidential candidates were divvied up between two nights during a live draw on CNN Thursday evening. The second Democratic primary debate takes place on July 30 and 31 at the Fox Theatre in Detroit, Michigan.

Here is a breakdown of the two groups of candidates and the dates on which they will debate:

On July 30, from left to right:

Activist Marianne Williamson

Rep. Tim Ryan, D-Ohio

Sen. Amy Klobuchar, D-Minn.

South Bend, Indiana, Mayor Pete Buttigieg

Sen. Bernie Sanders, I-Vt.

Sen. Elizabeth Warren, D-Mass.

Former Rep. Beto O’Rourke, D-Texas

Former Colorado Gov. John Hickenlooper

Former Rep. John Delaney, D-Md.

Montana Gov. Steve Bullock

On July 31, from left to right:

Sen. Michael Bennet, D-Colorado

Sen. Kirsten Gillibrand, D-N.Y.

Former HUD Secretary Julian Castro

Sen. Cory Booker, D-N.J.

Former Vice President Joe Biden

Sen. Kamala Harris, D-Calif.

Entrepreneur Andrew Yang

Rep. Tulsi Gabbard, D-Hawaii

Washington Gov. Jay Inslee

New York City Mayor Bill de Blasio

An interactive guide: Who is running for president in 2020?

More: When are the 2020 presidential election primaries?

To qualify, candidates had to poll at 1% or more in at least three qualified polls or receive donations from at least 65,000 individual donors, with a minimum of 200 individual donors per state in at least 20 states.

CNN drew names from three different groups to determine the two-night line-up, which was split up by public polling ratings, according to the DNC and CNN.

The first draw included 10 candidates: Bennet, Bullock, de Blasio, Delaney, Gabbard, Gillibrand, Hickenlooper, Inslee, Ryan and Williamson.

The second draw included six candidates: Booker, Buttigieg, Castro, Klobuchar, O'Rourke and Yang.

Biden, Harris, Sanders and Warren were in the final draw.

The DNC and CNN said the three separate draws were established "to ensure support for the candidates is evenly spread across both nights." Last month, some pundits noted that the second night of the first debate was stacked with top polling candidates, such as Biden, Sanders, Harris and Buttigieg.

The upcoming debate will be critical for candidates to continue to further their campaigns in the crowded Democratic field.

The threshold for candidates to qualify for the next debate increases after this month.

For debates scheduled for September and October, candidates will have to hit 2% in four qualifying polls and tally at least 130,000 individual donors, according to the DNC guidance. At this point, only 5 candidates — Biden, Buttigieg, Harris, Sanders and Warren — out of 25 would qualify for the September debate, according to an analysis by FiveThirtyEight. Three others have met the fundraising threshold, but not the polling mark.

Harris in last month's debate had a powerful exchange with Biden, where she called out the former vice president for opposing federally mandated busing to integrate schools while he was in Congress. Her polling in the days following the debate spiked.

However, it is unclear whether the California Democrat has continued to increase that momentum. She brought in nearly $12 million in the second quarter, trailing behind Buttigieg at $24.8 million, Biden at $21.5 million, Warren at $19.1 million and Sanders at $18 million.

Warren, who was on the first night of the debate, seemingly had no gaffes and has maintained her standings in polling, where she has almost consistently come in third among Democratic voters. In addition, she noted that she held no fundraisers and her second-quarter haul come from small donations.

However, some candidates have continued to slump, and the upcoming debate at the end of the month could be a make-or-break moment.

O'Rourke, who dominated headlines and saw a bump in polling when he first announced his presidential bid, has continued to lose steam. He brought in only $3.6 million during the second q. During the first quarter, the Texas Democrat raised $9.4 million.

Five other candidates failed to make the July debates: former Sen. Mike Gravel of Alaska, Miramar, Florida, mayor, Wayne Messam, U.S. Rep. Seth Moulton of Massachusetts, former U.S. Rep. Joe Sestak of Pennsylvania, and billionaire activist Tom Steyer. Four of them failed to meet either the polling or fundraising criteria needed to make the stage; Gravel met the fundraising criteria, but not the polling benchmark.

Contributing: Aamer Madhani

Like what you’re reading?: Download the USA TODAY app for more

This article originally appeared on USA TODAY: Second 2020 Dem debate: Which candidates will face off in Detroit?