The rating arm of McGraw Hill Financial Inc downgraded Germany's Deutsche Bank and the U.K.'s Barclays and Royal Bank of Scotland Plc to "stable" and Commerzbank AG to "negative".

Deutsche Bank, the largest German lender, has struggled to restore an image tarnished by a raft of regulatory and legal problems. The bank's co-CEOs, Anshu Jain and Juergen Fitschen, resigned earlier this week.

S&P downgraded Barclays by one notch to "A negative" and Deutsche Bank to "BBB positive," three notches above junk territory.

The agency also affirmed its ratings on Lloyds Bank Plc <48IY.L> and HSBC Bank Plc and said the outlooks are stable.

(Reporting by Avik Das in Bengaluru; Editing by Simon Jennings)