A man who threw a milkshake at Brexit Party leader Nigel Farage pleaded guilty Tuesday and was ordered to pay him compensation.

Paul Crowther, 32, was arrested last month on suspicion of assault after police say he threw a banana salted caramel shake at Farage on Monday to protest what he called the leader’s apparent “bile and racism.”

BREXIT LEADER NIGEL FARAGE TARGETED IN MILKSHAKE ATTACK, SUSPECT ARRESTED

He pleaded guilty to common assault and criminal damage at North Tyneside Magistrates' Court, which then handed him 150 hours of unpaid work assessment and ordered to pay Farage £350 compensation.

The milkshake attack was described in court as being “politically motivated,” according to the BBC. District Judge Bernard Begley said it “was an act of crass stupidity.”

Defense solicitor, Brian Hegarty, meanwhile, said the man’s actions were a “moment of madness” and said the client now regrets it.

“Ordinarily a man of his position would receive a caution,” he said, according to the broadcaster. “The fact is, it is said to be a politically motivated incident which has caused him to appear before this court and caused him to lose his good name.”

“Ordinarily a man of his position would receive a caution. The fact is, it is said to be a politically motivated incident which has caused him to appear before this court and caused him to lose his good name.” — Defense solicitor Brian Hegarty

DOUGLAS MACKINNON: MILKSHAKE ATTACKS ARE NOT FUNNY -- LEFT NEEDS TO CONDEMN VILE PRANKS BEFORE IT'S TOO LATE

Prosecutor James Long said that Farage was both shocked and embarrassed the attack, noting that for a brief moment he would not have known whether it was the milkshake or perhaps "something more sinister".

The perpetrator previously defended his actions against Farage, telling reporters at the scene that it was “a right of protest against people like him,” adding that “the bile and the racism he spouts out in this country is far more damaging than a bit of milkshake to his front."

CLICK HERE TO GET THE FOX NEWS APP

A crowdfunding page was set up for Crowther in a bid to get “his milkshake money back.” It raised over £1,705 ($2,136).

The Associated Press contributed to this report.