The city and sneaker giant Nike have inked a deal that gives the international company the right to use New York City’s iconography — like the logos for the police and fire departments — on its apparel for two years, in exchange for a cut of the sales.

The Franchise and Concession Review Committee last week signed off on the deal, which will give the city’s tourism arm, NYC & Company, a 5 percent cut of the revenue generated from Nike’s NYC-branded clothing and accessories.

The Portland-based sneaker company will also give NYC & Company a still-to-be determined amount of the merchandise for giveaways.

City Hall is guaranteed at least $20,000 a year from the deal, which allows Nike to slap any city government logo — from the iconic taxi “T” to the Parks Department’s leaf to the NYPD’s bomb squad — on clothes and other goods.

The deal was first reported by news nonprofit The City.

City lawyers zealously guard the Big Apple’s trademark logos — and go after those merchants who use them without permission.

For example, the city sued The Cop Shop, a Massapequa, LI, business that sells NYPD and FDNY uniforms, T-shirts, baseball caps, coffee mugs and other merchandise.

The suit claimed the business and its owners, Susan and Salvatore Piccolo, infringed on the trademarks of those agencies, including the iconic NYPD logo.