Lionel Messi and his father saw their suspended prison sentences for tax fraud reduced to fines by a Barcelona court on Friday.

The Supreme Court in Spain had in May confirmed a 21-month jail sentence and 2.09-million-euro ($2.25 million) fine imposed on him for tax fraud, months after he lodged an appeal.

The Argentina international and his father Jorge Horacio Messi were in July 2016 found guilty of using companies in Belize, Britain, Switzerland and Uruguay to avoid paying taxes on 4.16 million euros of Messi’s income earned from his image rights from 2007-09.

The pair had been convicted of hiding image rights royalties in offshore accounts and had been given suspended jail terms of 21 and 15 months.

That jail sentence has now been reduced to a fine.

Messi will pay 252,000 euros ($287,000) and his father 180,000 euros.

The Argentine star who just got wedded to his long-time girlfriend in Argentina, got a contract extension at Barcelona few days ago.

FC Barcelona announced on Wednesday that it would keep the star striker until June 30, 2021.

"The deal will be signed in the coming weeks, when Messi returns to the team for pre-season training," the club said in a statement.