Dozens of climate change activists were taken into custody Friday after hundreds of people sat down in the middle of an intersection at Herald Square to protest Black Friday “consumerism,” police sources said.

Up to 300 protesters from the group Extinction Rebellion marched through Manhattan before sitting in the middle of 34th Street and Sixth Avenue, linking arms and blocking traffic.

Police surrounded the group at the intersection shortly before 2 p.m. and warned them to clear the road or be arrested.

At least 27 activists were taken into police custody and some of them were expected to be charged with disorderly conduct, law enforcement sources told The Post.

The action was part of planned Black Friday protests across the globe, with activists blockading shopping malls in Paris, Montreal and Madrid, calling for an end to consumerism.

Protesters said they were calling for people to boycott the popular bargain-shopping day to help save the planet.

“This is a real crisis. It’s a moral crisis. We’re in a very sad place,” said Manhattan resident Sarah Kollodny, 80.

“We really want to draw attention to what’s happening in the world. Black Friday is a day of strong consumerism,” she added, urging people to “reflect on our resources and consumerism.”

The group members carried signs calling for “Empathy, humility, frugality” and declaring a “climate emergency,” caused by what they said were carbon emissions from excessive consumption.

“We’re in mourning for all the species we lost on our planet,” said Xiye Bastida, 17, a student at Manhattan’s Beacon High School. “We are out here telling people to boycott Black Friday, to say no to shopping, say no to consumerism.”