Royal Bank of Scotland on Wednesday agreed to pay a US regulator $5.5 billion (4.8 billion euros) over its role in the subprime mortgage crisis more than a decade ago.

"The Royal Bank of Scotland Group... has reached a settlement with the Federal Housing Finance Agency," a statement said, adding that under the settlement, FHFA "litigation against RBS will be withdrawn".