The bank managed to achieve its first pre-tax profit of 1.3 billion euros in three years but still suffered an after-tax loss, Deutsch Bank said in a statement. It is the third consecutive loss recorded by the bank.

The tax reform in the United States, which resulted in a non-cash charge of around 1.4 billion euros, heavily affected the net income and made the difference between profit and loss, the bank said.

The bank highlighted an improvement of profitability, citing its pre-tax loss of 810 million euros in 2016. The improvement was largely attributed to significant reductions in impairments and litigation charges.

In January, Deutsche Bank agreed to pay US$7.2 billion to the U.S. Justice Department and wrapped up one of its biggest litigation risks. The U.S. Justice Department accused Deutsche Bank of misleading its customers about risky mortgages before the financial crisis in 2008.

Looking ahead, John Cryan, Chief Executive Officer of Deutsche Bank, said, “We believe we are firmly on the path to producing growth and higher returns with sustained discipline on costs and risks.”