Willie Ames, 47, pictured from a previous arrest, was taken into custody Thursday morning for pushing a man onto New York City subway tracks

A man wearing a red 'Make America Great Again' hat who pushed a Mexican immigrant onto New York City subway tracks has been arrested.

Willie Ames, 47, was taken into custody on Thursday morning on Staten Island following a police investigation into a hate crime assault last Friday.

Luis Lopez, 24, was taken to the hospital for cuts on his head after Ames allegedly shoved him onto the tracks head first following an argument.

Police said that Ames spewed racial slurs during the assault, accusing Lopez of taking jobs and bringing drugs into the country.

Surveillance footage shows Ames wearing a red Make America Great Again hat at the time he committed the alleged hate crime against a 24-year-old Mexican immigrant

The incident occurred on a 4 train as it approached the Union Square station in Manhattan.

Lopez, a construction worker who immigrated to the US from Mexico six years ago, reported that Ames began harassing him and a friend on the 4 train.

Lopez and his friend then chose to switch trains at the Union Square stop at 14th street to get away from Ames.

However, the suspect followed the the men and punched Lopez in the head several times, according to police.

That's when Ames shoved Lopez off the platform and onto the train tracks before running off.

'I don't know why he targeted me,' Lopez told the Daily News. 'He started yelling that I was there to take his job and that we bring drugs here.'

'I fell head-first,' Lopez said. 'My head hit the railing. I tried to get up, but lost consciousness. I couldn't move. My friend jumped in to get me out. He saved my life.'

The police released the surveillance video of Ames in the red Make America Great Again hat - a symbol of Donald Trump's 2016 campaign for president.

Police records show Ames has previous arrests for drug possession, robbery and assault.