A New York judge has handed former President Donald Trump a multi-million dollar penalty in a civil fraud case.

On Friday, Judge Arthur EngoronĀ hit Trump with a $364 million penalty.

The Associated Press notes the penalty came after Engoron ruled Trump engaged in a ā€œyearslong scheme to dupe banks and others with financial statements that inflated the former president’s wealth.ā€

ā€œTrump also was barred from serving as an officer or director of any New York corporation for three years,ā€ it added.

The former president has lashed out at the trial and has called it a ā€œfraud on me.ā€

Before the trial even started, Engoron ruled Trump is liable for fraud.