A Bronx man bashed another guy over the head with a glass bottle — and then attacked a police officer who tried to arrest him minutes later, police said.

Thomas Hines, 33, was near East 186 Street and Arthur Avenue in Belmont at about 2 a.m. Sunday when he came up to 28-year-old Arjan Bunjaj, who was chatting with friends, and struck him in the back of the head with a glass bottle, sources said.

When officers responded, Bunjaj told them Hines had fled with an unidentified woman, according to police.

A few minutes later, cops spotted Hines walking nearby and attempted to arrest him, but he allegedly refused to be handcuffed, police said.

Hines then turned violent, allegedly attacking one of the arresting officers and leaving him with a cut on his head, according to police.

It does not appear the bottle was used in that attack.

The officer, 35, was taken to North Central Bronx Hospital, where he needed three staples for his head wound, sources said.

Bunjaj refused medical attention at the scene.

Hines was charged with two counts of assault, one on a police officer — as well as obstructing governmental administration and disorderly conduct, police said.

The incident comes on the heels of a string of disrespectful attacks on cops, including the now-viral water dousings and an incident last week in which a man lobbed milk at police in the Bronx.