Five people were shot, including a six-year-old boy, during an overnight shooting in Brooklyn on Monday, police said.

The shooting happened during a large gathering on Nostrand Avenue and Crown Street at 3 a.m., according to an NYPD spokesperson.

All five victims were transported to Kings County Hospital in stable condition.

The six-year-old boy was shot in the leg and his mother was struck in the foot while exiting a cab at the location, NYPD Chief of Detectives Rodney Harrison said during a press conference on Monday. Three men were also hit in the legs and feet.

Harrison said the shooters were walking down the block when they opened fire at the crowd. “It looks like it’s unfortunately a gang-related shooting," he added.

Police recovered a pair of guns at the scene and arrested two men. Charges against the men are pending.

The Labor Day violence came just blocks from Eastern Parkway, where the pre-dawn J'Ouvert celebrations would typically attract thousands of revelers. All West Indian Day events were called off this year, and few people took part in the annual street party.

A spokesperson for the NYPD said it was not clear whether the shooting was related to an unofficial J'Ouvert event.

Police leaders said they planned to flood the streets with officers this weekend to stem a recent surge in gun violence. More than a quarter of last month's shootings occurred in Central Brooklyn.

At least four people were fatally shot across the city this weekend — including two people in Brooklyn, one in the Bronx, and one in Queens. Police have not announced arrests in any of those cases.