MADRID (CBSNewYork/AP) — A Barcelona court on Friday gave soccer star Lionel Messi and his father suspended sentences of 21 months in prison for tax fraud.

The court found both the Barcelona star and his father, Jorge Horacio Messi, guilty of three counts of defrauding the tax department to the tune of $4.6 million.

READ MORE: New York Relaxes Most COVID Restrictions After Reaching 70% Vaccination Rate: 'A Momentous Day'

In Spain, sentences of less than two years for first offenses are suspended, meaning neither man will go to jail.

The court also fined Messi $2.2 million and his father  $1.65 million.

During the four-day trial last month, Messi and his father denied any wrongdoing. Both said the player was unaware of the tax issues that led to the fraud charges.

But the state prosecutor argued that Messi and his father had failed to prove their innocence and were unable to show that the player did not have at least some knowledge of the corporate structures created to lower his tax burden in Spain.

READ MORE: Actress Lisa Banes Dies After Being Struck By Scooter On Upper West Side

Tax inspectors testified that they found evidence that Messi’s father used companies in countries such as Uruguay, Switzerland and Belize to reduce tax on the player’s income from image rights. Messi’s father said he was told by a legal adviser that the practice was legal.

The sentence can be appealed.

Messi is Argentina’s career-leading scorer with 55 goals in 113 international appearances. But he has lost three Copa America finals with Argentina (2007, 2015 and 2016) and announced his international retirement after last month’s penalty shootout loss to Chile.

With Barcelona, in contrast, Messi has won four Champions League titles and three Club World Cup trophies. He also won eight Spanish league titles, scoring 453 competitive goals in 531 games, including a league-record 312.

MORE NEWS: Fireworks To Honor Essential Workers Tonight As New York Lifts Most COVID Restrictions

(TM and © Copyright 2016 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2016 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)