WASHINGTON (Reuters) - Royal Bank of Scotland RBS.L will pay $4.9 billion to settle U.S. claims that it misled investors on residential mortgage-backed securities between 2005 and 2008, the U.S. Justice Department said on Tuesday.

FILE PHOTO: Royal Bank of Scotland signs are seen at a branch of the bank, in London, Britain December 1, 2017. REUTERS/Peter Nicholls/File Photo

The Justice Department said the penalty is the largest-ever imposed on a bank for misconduct leading up to the financial crisis. The bank announced in May that it had reached the settlement in principle.

The government alleges RBS misled investors in underwriting and issuing residential mortgage-backed securities, understating the risks behind many of the loans and providing inaccurate data.

“Despite assurances by RBS to its investors, RBS’s deals were backed by mortgage loans with a high risk of default,” Andrew E. Lelling, U.S. Attorney for the District of Massachusetts, said in a statement.

The Justice Department said that RBS disputes the allegations and does not admit wrongdoing, although the bank said in a statement it was happy to move on.

“There is no place for the sort of unacceptable behavior alleged by the DoJ at the bank we are building today,” RBS Chief Executive Ross McEwan said.

In conjunction with the settlement, the bank also said it would be paying out an interim ordinary dividend of 2 pence per share on Oct. 12 to shareholders.

The dividend is the bank’s first since its near-collapse and 45.5 billion pound ($58 billion) state bailout in 2008.

The DOJ settlement and the resumption of dividends were two of the last big milestones in RBS’s decade-long journey back to normality. The looming Justice Department fine had weighed on the bank’s share price and prevented it from paying out to its shareholders.

Together with hefty cuts made to its investment bank and international business, a return to dividends could help shift the bank’s profile with investors from a risky bet into a safe, predictable value stock.

It also expands the market for future government share sales by enabling a broader array of investors to look at buying the bank’s shares.

Tuesday’s announcement marks the latest in a long-running series of massive settlements struck between the U.S. government and large global banks over conduct leading up to the financial crisis.

On Aug. 1, the Justice Department struck a settlement with Wells Fargo, which agreed to pay $2.09 billion to settle similar claims.