The British tax man just won a major legal battle against two of Europe's biggest banks

The British taxman just struck a blow against two of Europe’s biggest banks in the fight over taxes on bonus schemes run by the banks more than a decade ago.

HM Revenue and Customs brought a legal challenge against UBS and Deutsche Bank after it was previously ruled that the banks did not need to pay taxes on two £90 million ($128 million) bonus schemes run during 2003 and 2004.

On Wednesday, the Supreme Court ruled that both banks must pay all outstanding taxes on the schemes, dating back to the pre-financial crisis era.

Judges in the hearing called the schemes created by both banks “completely arbitrary” and said that they had “no commercial rationale beyond tax avoidance.”

“It is difficult to accept that Parliament intended to encourage, by exemption from taxation, the award of shares to employees, when the award of such shares has no purpose other than the obtaining of the exemption itself,” said Jonathan Mance, a judge in the case.

Both bonus schemes involved bankers receiving shares from their employers which were designated as restricted securities, and as such, not subject to income tax under UK law. These shares were given to employees as a direct replacement for cash bonuses, allowing the banks to avoid paying tax on bonus awards.

According to court papers, UBS’ scheme, which involved 426 staff, allowed the bank to avoid paying around £50 million ($71.2 million) overall, split between £36.9 million ($52.5 million) in taxes, and £12.7 million ($18.1 million) of national insurance contributions.

The Financial Times reports that Deutsche Bank has already paid the owed taxes, which also amount to around £50 million.

After the ruling Deutsche Bank did not immediately comment, while UBS said in a statement that it was “disappointed” by the news.

NOW WATCH: This is how rapper 50 Cent made millions and then lost it

NOW WATCH: Money & Markets videos

Business Insider Emails & Alerts

Site highlights each day to your inbox.

Follow Business Insider Australia on Facebook, Twitter, LinkedIn, and Instagram.