NEW YORK (CBSNewYork) — A Brooklyn man has been arrested in connection with a brutal attack aboard a subway Sunday.

The victim was punched repeatedly and then pushed onto the tracks in what investigators have dubbed a hate crime.

READ MORE: Appointments No Longer Needed At NYC's COVID Vaccination Sites; Anyone 16+ May Walk In, Mayor De Blasio Announces

Police say 47-year-old Willie P. Ames, wearing a red “Make America Great Again” hat, started fighting with a 24-year-old Hispanic man on a 4 train as it was approaching Union Square on Friday around 8:15 p.m.

Ames allegedly started making multiple derogatory remarks regarding the victim’s ethnicity. He then followed the victim off the train and punched him in the head multiple times.

READ MORE: Ghislaine Maxwell Due In Manhattan Federal Court On New Sex Trafficking Charges Allegedly Involving 14-Year-Old

Police say Ames then pushed the victim onto the tracks before running off. Luckily, a friend helped the victim to safety.

The victim was taken to a nearby hospital and treated for a minor head wound.

On Monday, police detained another black man wearing a “Make America Great Again” hat on the Upper East Side, but he turned out to be the wrong man. Police cleared him after making a few calls and apologized.

MORE NEWS: Long Island Boy Who Is Visually Impaired Receives Toddler Cane From Local Nonprofit

Ames is charged with three counts of assault and one count of aggravated harassment.