NEW YORK — Citigroup lost $18.3 billion in the fourth quarter as the bank had to take more than $20 billion in accounting write-downs related to the new tax law.

The bank had a loss of $7.15 a share, compared with a profit of $3.57 billion, or $1.14 a share, in the same period a year ago.

Citigroup wrote off $19 billion in deferred tax assets, which are credits Citi could have used toward future years. Because the new tax law lowered corporate tax rates, those credits aren’t worth as much and Citi, like other major U.S. banks, had to write down their value.

The bank also took a $3 billion charge for foreign earnings it will bring back to the United States.

Excluding those charges, Citi earned $3.7 billion, or $1.28 a share.

Follow the Bangor Daily News on Facebook for the latest Maine news.