The U.S. Attorney’s Office for the Eastern District of New York on Monday announced that UBS has agreed to pay $1.4 billion to settle a civil action related to its underwriting and issuance of residential mortgage-backed securities in 2006 and 2007 ahead of the 2008 financial crisis.

The settlement brings an end to the final case brought by a U.S. Department of Justice working group focused on investigating banks and other entities that issued RMBS in the years preceding the financial crisis.