Citigroup announced Monday that it will pay roughly $7 billion to settle a federal investigation into risky subprime mortgages, the type that helped bring on the financial crisis.

The bank, one of America’s largest, revealed the deal as part of its quarterly earnings report. At a news conference later, Attorney General Eric Holder said the bank’s behavior had “shattered lives and livelihoods throughout the country and around the world.”