An enraged Brooklyn driver pummeled a livery cabbie in a road rage attack earlier this month, dramatic video shows.

The 25-year-old cabbie was driving a black Toyota Camry west on Atlantic Avenue near Logan Street in Cypress Hills around 6:20 a.m. Aug. 4 when his car collided with a green Nissan Rogue, police said Friday night.

Both drivers stopped their cars — and the Nissan driver got out, opened the livery driver’s front passenger side door and socked him in the head and body, as two women appeared to hold him back.

Then the driver returned to his car and took off, heading west on Atlantic Avenue.

The hack was taken to Jamaica Hospital, where he was treated for pain and swelling, as well as a fractured left middle finger.

The victim’s vehicle was damaged on the passenger side, cops said.

The video appears to show one backseat passenger in the cabbie’s car.