The NYPD hit a royal flush on Friday — busting 32 people in four different states for allegedly participating in a large-scale drug and gambling ring disguised as a “poker speakeasy.”

“The criminal schemes orchestrated by this sophisticated organization shared a single motivation: greed,” said Special Narcotics Prosecutor Bridget G. Brennan in a joint statement with police.

Cops executed 19 search warrants and 5 arrest warrants simultaneously throughout the city as authorities in Massachusetts, Georgia and Florida carried out the other busts.

The illegal gambling and drug operation was allegedly run out of apartment buildings in the West Village and Lower East Side.

Drug users looking to score cocaine and heroin headed to 536 E 5th street, while gamblers visited a “private” poker club at 446 Avenue of the Americas, according to prosecutors.

“Both the gambling operation and the narcotics enterprise charged in the indictment unsealed today preyed on human vulnerabilities and demonstrated utter disregard for life,” Brennan said.

“Promoting drug use leads to lives destroyed and lost; gambling debts to desperation, crime and sometimes suicide. I thank our law enforcement partners for their tremendous commitment to this investigation.”

Authorities believe the coke and heroin was intended to fuel the West Village poker club — whose “professional clientele” consisted mostly of doctors dropping as much as $20,000 per night.

Angel M. Melendez, Special Agent in Charge of HSI New York, called it a “sophisticated, underground gambling operation.”

“Law enforcement always seeks to build on their investigations, consistently seeking to connect the dots,” he said. “As we continue to work jointly in these operations, HSI and NYPD are able to combine intel and resources to takedown criminal networks like this one.”

The poker club’s manager and promoter, Geeta Singh — aka “Mira” — allegedly used an online service known as “Meetup” to bring in clients.

“We welcome respectful poker enthusiasts looking to play 1/3, 2/5, 5/10 no limit holdem and pot limit omaha in a fun upscale setting in Manhattan,” one of his event pages says. “Complimentary food & cocktails. Waitresses, PPV events, multiple HD TVs, security, separate smoking lounge. Upscale, safe & fun.”

The Meetup page that Singh used to arrange his poker events had nearly 500 members as of Friday night.

“We will continue to be relentless in our mission to dismantle these types of illicit operations and bring the criminals who run them to justice,” said NYPD commissioner James O’Neill.