Big retail is beating a retreat in the Big Apple.

For the first time in 11 years, national retail chains are closing more stores in New York City than they’re opening, according to a new report.

With rents rising and Amazon continuing its expansion, the number of local chain-store locations shrunk by 0.3 percent to 7,849 in 2018, according to the study by the Center for an Urban Future.

“The number of chain stores always went up here, even in the recession,” said Jonathan Bowles, executive director of the think tank. “But this year we saw an acceleration of merchandise retailers close up shop.”

A record 18 chains, including Aerosoles, Nine West, Easy Spirit, Toys ‘R’ Us, Quiznos and DKNY, exited all of their New York sites in 2018, with most of them having filed for bankruptcy protection.

Clothing retailers accounted for the greatest loss of New York stores, with 36 of 86 shuttering locations.

Some 124 retail chains shrunk their footprints, including Subway, Sunglass Hut, Staples and McDonald’s, the study found.

In 2017, the number of chain-store locations had grown by 1.8 percent, despite the fact that 65 chains shrank in New York.

Leading the retreat was Subway, which closed a whopping 103 eateries. Rival sandwich shops like Au Bon Pain, Cosi, Panera Bread and Potbelly also took a hit this year.

Family Dollar shuttered 18 stores, while Sunglass Hut and Staples exited 8 and 9 sites, respectively.

Most of the chains that added to locations — and some 99 chains did so — are in the food and wireless telecom sectors, while 108 maintained the same number of stores.

Starbucks added 15 stores, compared with 12 that Dunkin’ Donuts added.

T-Mobile was the fastest-growing retail operation, with its MetroPCS unit adding 28 stores and T-Mobile adding 16.