Freshfields Bruckhaus Deringer's Frankfurt office has been raided by German prosecutors in connection with a tax evasion investigation.

According to Reuters, the raid was connected to an investigation into so-called "cum-ex" transactions, which are at the centre of one of the largest tax scandals in Germany.

The asset-stripping deals have allegedly been used by a number of banks in Germany to claim billions of euros in rebates from the German authorities, before a loophole was closed in 2012.

The loophole effectively allowed two parties to claim ownership of the same shares, enabling both parties to receive the rebates.

German newspaper Sueddeutsche Zeitung, which broke news of the Freshfields' raid, claimed that the raid related to an opinion that the magic circle firm prepared for Canada's Maple Bank.

The German arm of the bank, which was raided by German authorities in connection with the tax evasion investigation in 2015, was closed by German authorities in 2016 amid worries that unpaid taxes were threatening its financial position.

A Freshfields spokesperson said: "Freshfields is confident that the prosecutor's review will reveal that our advice has been legally sound."

Earlier this year, US firm Jones Day was raided by German authorities investigating the firm's client, carmaker Volkswagen.

Jones Day had carried out an internal investigation into the emissions-rigging scandal at Volkswagen.

A German court later ruled that documents seized in the raid could not be used by investigations looking into the scandal.

Freshfields has also played a role acting for Volkswagen on the scandal, advising on Volkswagen's $4.3bn settlement with the US government.