Dozens of protesters were arrested during a sit-in at Microsoft’s Midtown store over the tech giant’s handling of web services for the US Immigration and Customs Enforcement.

The NYPD said 24 men and 52 women were charged with obstructing traffic after blocking cars outside the company’s flagship shop on 5th Avenue between 53rd and 54th streets on Saturday.

“By knowingly and willingly providing technology support to ICE, Microsoft Corporation is colluding with ICE and its racist mission to tear apart families, and mistreat children,” said Andy Ratto, an organizer with Close the Camps NYC. “This is a moment of life or death for 11 million undocumented people in the United States, and we will not remain silent as American corporations profiteer from — and enable — human suffering.”

The activists slammed the tech company for making money from ICE by providing the agency with cloud services.

Video from social media shows the protesters sitting in a crosswalk and on sidewalks, chanting and holding up signs reading “No business with ICE.”

Microsoft CEO Satya Nadella penned a post in June on LinkedIn, where he called ICE’s family separation policy “simply cruel and abusive.”

“I want to be clear: Microsoft is not working with the U.S. government on any projects related to separating children from their families at the border. Our current cloud engagement with U.S. Immigration and Customs Enforcement (ICE) is supporting legacy mail, calendar, messaging and document management workloads.”

A spokesperson for the tech company told The Post the store closed amid the protests and thanked the NYPD for its help.