A Times Square Spider-Man was caught on video taking matters into his own hands after a man started hassling his costumed buddies.

The feisty superhero can be seen taking swings at his annoying foe and putting him in a headlock in front of the Toys R Us at Broadway and West 44th Street on Tuesday — as a crowd of onlookers cheered.

“There was a guy antagonizing a number of other street performers,” said witness Geoff Golberg, who videotaped the melee and posted it to Twitter on Thursday, captioning it: “Spider-Man saves the day in Times Square.”

A different costumed web-slinger said the heckler regularly hassles the panhandling characters and shouts racial slurs at them.

“He said a lot of racist s–t,” said the Spider-Man, who only identified himself as Josh. “He said, ‘You Muslims go back to your country — you’re gonna blow up Times Square.’

“He’s been doing this on and off for almost a year,” he said.

No police report was filed over Tuesday’s slugfest, and there were no immediate arrests, cops said.

This is not the first time a Spider-Man turned Times Square into a battleground.

A panhandling Spidey was busted in July 2014 after he allegedly clobbered a cop who stopped him from hitting up tourists for cash.

In April, Junior Bishop, the alleged costumed menace, sought $1.5 million from the city for what he claimed was a false arrest that led to a five-day lock-up.

Last September, a pair of the costumed “crimefighters” also traded punches with an angry passerby in Times Square. The costumed characters and the heckler were all charged with assault in the incident.