More than 1,000 anti-cop protesters defied Mayor Bill de Blasio and flooded Manhattan on Tuesday evening, marching through the Fifth Avenue shopping district before heading uptown.

“The mayor says stop that, we say f–k that!” the mob chanted at one point.

Other slogans were of the sort that Hizzoner has denounced as “hateful” and “inappropriate” in the wake of Saturday’s assassinations of two city cops.

“NYPD, KKK, how many kids did you kill today?” the protesters shouted.

The demonstrators, some carry­ing a banner that read “Stop Racist Police Terror,” started marching south from 59th Street on the sidewalks, but later blocked traffic on Fifth and Madison avenues.

They then turned around and started marching toward Harlem to demonstrate in front of a police station house.

“We’re protesting tonight because the mayor specifically said not to,” said marcher Tarik Grand, 25, of Brooklyn.

There had been no arrests as of 8 p.m.

Anti-cop protests have been roiling the city since a Staten Island grand jury on Dec. 3 voted not to indict NYPD Officer Daniel Pantaleo in the chokehold death of Eric Garner.

But on Monday, de Blasio — who has staunchly defended the right to protest peacefully — urged a halt to the demonstrations until after the funerals of cops Rafael Ramos and Wenjian Liu, who were shot without warning as they sat in a patrol car in Brooklyn.

At another protest earlier Tuesday outside City Hall, demonstrators denounced cops as “pigs” and blasted de Blasio.

“Anyone who presides over a system where their police day in and day out brutalize and murder people with impunity, and they’re never punished, has no right to tell other people not to protest,” said Travis Morales of the Stop Mass Incarceration Network.

Meanwhile, members of the City Council — who protested the grand jury decision by staging “die-ins” — jumped on the sympathy bandwagon and held a pro-cop news conference inside City Hall.

Additional reporting by Yoav Gonen and Michael Gartland