Mobile phone video captured a wild melee Saturday between nearly a dozen cops and a group of teenagers at a Brooklyn subway station, with punches flying on both sides.

Five people were arrested after the 2:20 p.m. brawl at the Jay Street-MetroTech station near Borough Hall, which police said broke out after cops responded to reports of a fight between two groups on Jay Street that later spilled into the transit station.

The video starts with officers trying to handcuff one suspect while a handful of individuals appear to try to pull the cops away.

One officer reacts by running up and punching one of the teens in the face, sparking another tussle.

Moments later a different officer is seen swinging away at another brawler, as several people are seen shooting mobile phone video of the fighting.

Among those arrested in the aftermath of the incident was a 15-year-old boy accused of slugging an officer. He was charged with assault on a police officer, resisting arrest and disorderly conduct.

Also arrested were a 16-year-old girl who was hit with a reckless endangerment charge, and three 18-year-olds who were charged with resisting arrest.

None of the suspects were identified Saturday night.