Credit Suisse and Mozambique have reached an out-of-court settlement over the $1.5 billion tuna bond scandal, which lasted for a decade.
UBS will forgive a portion of a loan made to Mozambique in 2013, amounting to less than $100 million.
The agreement was reached before a three-month London civil trial began.
Mozambique, one of the poorest countries in the world, wished to revoke a sovereign guarantee on a loan it claims was procured corruptly and to receive compensation for other alleged misconduct.
UBS, which rescued scandal-tainted Credit Suisse, has a financial margin of up to $10 billion for litigation.
The settlement leaves French shipping magnate Iskandar Safa and his Privinvest group as the primary remaining defendants in a High Court battle over funding and shipping deals.