The bank said Wednesday it reached the agreement earlier this week with the U.S. Department of Justice, two attorneys general and the Department of Housing and Urban Development. The company said the agreement still needs to be approved.
The Department of Justice declined to comment.
In 2012, the federal government sued Wells Fargo accusing the bank of misrepresenting the quality of thousands of loans in order to be eligible for federal loan insurance. The government wanted to recover money that the FHA paid after borrowers defaulted on Wells Fargo mortgage loans.
Wells Fargo, the country's largest mortgage lender, said the settlement is related to the 2012 case and other pending or potential cases.
Shares of Wells Fargo & Co., based in San Francisco, fell $1.50, or 3.1 percent, to $46.96 in midday trading.