New York (CNN Business) Over the past two years, Wells Fargo has faced numerous lawsuits and government investigations stemming from a cascade of business scandals.

On Friday, it took a step to put one batch of accusations behind it.

The bank agreed to pay $575 million to all 50 states and the District of Columbia to settle civil charges related to the bank's fake-accounts scandals.

The agreement, which applies to charges brought by states' attorneys general, follows other fines and settlements Wells Fargo ( WFC ) has paid out since September 2016. That's when the bank admitted its employees opened as many as 3.5 million fake bank and credit card accounts without customers' knowledge. Since the first revelation, a series of internal and external probes have uncovered a wider culture of problems at the bank.

In April, two federal regulators fined the bank $1 billion for forcing customers into car insurance and charging mortgage borrowers unfair fees.

Read More