SAN FRANCISCO (MarketWatch) — Wells Fargo & Co. agreed to pay $100 million to Citigroup Inc., the companies said Friday, ending a lawsuit over the San Francisco-based mortgage giant’s controversial acquisition of Wachovia Corp. at the height of the financial crisis.

“We are glad to put this matter behind us and we look forward to our two institutions working together constructively in the future,” the banks said in a joint statement.