Wells Fargo, the biggest US mortgage lender, has today reported a 25% increase in fourth-quarter earnings.

It made more loans, set aside less money for potential defaults and enjoyed above average returns from the investments made by its private equity business.

The San Francisco-based bank was the first major US lender to report fourth-quarter earnings.

Revenue grew over the year in credit cards, wealth management and other units, and the bank brought in more in service charges and investment fees. Mortgage lending slowed from the third quarter, however.

Revenue rose 7% to $21.9 billion, beating the $21.3 billion expected by analysts. Wells Fargo earned $4.9 billion before paying dividends on preferred stock. That amounted to 91 cents per share, more than the 87 cents per share analysts were expecting.

The bank earned $3.9 billion, or 73 cents per share, the same time last year. As in the previous quarter, mortgages were the main driver of the bank's results.

The bank said it funded $125 billion in mortgages, up from $120 billion the same time a year ago. However, that was also down from $139 billion in the third quarter, stoking some investors' concerns that the mortgage boom, which Wells Fargo is heavily dependent on, could be slowing.

Chief financial officer Tim Sloan said he was "very pleased" with the bank's performance, but also noted the "challenging" problems of "low interest rates and elevated unemployment." Low interest rates can hurt banks because they get a lower return from lending out money. Well's Fargo's net interest income fell 2% from the same time a year ago.

Monday's national foreclosure settlement, in which Wells Fargo and nine other banks agreed to spend a combined $8.5 billion to settle the government's accusations that they had wrongfully foreclosed on some struggling borrowers, was also in focus.

Wells Fargo said it would pay $766m in cash and commit an extra $1.2 billion to "foreclosure prevention actions," such as mortgage modifications, for its part of the settlement. The settlement forced it to take a $644m charge to fourth-quarter results.

The settlement also eliminates an uncertainty that had been hanging over the bank and means the bank no longer has to go through individual, independent reviews of its repossessions. The bank said that hiring external consultants and extra staff for the repossession reviews had recently been costing it about $125m a quarter.

Chief executive John Stumpf said the bank was "very pleased to have put this legacy issue behind us."