Image copyright Getty Images

Germany's Deutsche Bank says it has agreed a $7.2bn (£5.9bn) payment to US authorities over an investigation into mortgage-backed securities.

The sum, which needs final approval, is far lower than the $14bn the US had asked the bank to pay in September.

That looming fine had caused concerns that a failure of the bank could pose a risk to the global financial system.

Credit Suisse also announced a similar deal, while Barclays is now under investigation too.

The sale of residential mortgage-backed securities played a significant role in the 2008 financial crisis.

Several banks in the US have been subject to investigations over allegations of giving mortgages to unqualified borrowers, then repackaging those loans as safe investments and selling the risk on to others. The inquiries related to deals done between 2005 and 2007.

Meanwhile, Credit Suisse has said it has agreed a $5.28bn deal to settle its own dispute with US authorities over mortgage-backed securities.

The Swiss bank will pay US authorities $2.48bn, and will also give consumers $2.8bn in compensation over the next five years.

At the same time, the US Department of Justice has said it is now also suing Barclays for alleged mortgage securities fraud.

It alleged that from 2005 to 2007, Barclays "repeatedly misrepresented the characteristics of the loans backing securities they sold to investors throughout the world, who incurred billions of dollars in losses".

Image copyright Reuters

Analysis: Theo Leggett, Business correspondent

Deutsche Bank will be pretty happy with this settlement. It will be painful, but not nearly as painful as it could have been.

The Department of Justice's opening gambit was a $14bn resolution. That would have been extremely serious for the company - equivalent to more than half of its market value. But it's also fair to say that was never realistically going to happen.

Deutsche was expecting to pay in the region of $5bn, based on the penalties doled out to other banks which allegedly missold mortgage-based investments.

Yes, today's penalty is higher - at $7.2bn. But only $3.1bn of that is actually hard cash. The rest is made up of "consumer relief" - changes to loans and other help for borrowers - which can be spread over a number of years.

It's a similar story for Credit Suisse. An overall penalty of $5.3bn, of which $2.8bn will go towards helping borrowers.

So rather than licking their wounds, executives at Deutsche in particular could be forgiven for letting out a few heartfelt sighs of relief.

Other banks

Deutsche Bank operates in 70 countries with 100,000 employees, but is shedding about 15% of its workforce, disposing of its retail bank, Postbank, and pulling out of other countries.

Its assets are about €1.6tn. HSBC, the biggest non-Chinese bank in the world, has assets 50% greater than that, but Deutsche is still in, or near, the top 10 biggest global banks.

Under the settlement, Deutsche's payment will be made up of a civil penalty of $3.1bn, as well as $4.1bn in consumer relief, delivered over a period of five years, that will help US homeowners.

Other banks that have been ordered to pay fines by the US Department of Justice include Citigroup, which says its $12bn penalty has been reduced to $7bn.

In 2013, JP Morgan Chase was fined $13bn, following allegations that it overstated the quality of mortgages being sold to investors. In the following year, Bank of America paid $16.7bn to settle similar charges.

Goldman Sachs settled for $5.1bn in January this year.

BBC Monitoring: Press say Deutsche Bank fine 'could have been worse'

German commentators note that the Deutsche Bank management will be relieved that the fine agreed with US regulators is only about half of what was originally demanded, but that $7.2bn is still a lot of money to pay.

Tobias Kaiser writes in Die Welt that the deal "will generate a sigh of relief at Deutsche Bank headquarters... But the punishment that has now been agreed on is still a hefty one."

The business daily Handelsblatt says: "Though it is no longer expected to pay the sum demanded at the outset, the financial institution must still dig deep in its coffers."

Claus Hulverscheidt, writing in Suddeutsche Zeitung, agrees: "It could have been even worse for Deutsche Bank, but the punishment that has now been agreed with the US Department of Justice will put a heavy burden on the country's biggest financial institution for years to come."