The UK's banks could cope if Britain leaves the European Union in a "disorderly Brexit" in 2019, the Bank of England has said.
For the first time since the financial crisis, all of the UK's biggest lenders have passed the Bank's stress tests.
The tests of adverse economic scenarios discover if the banks could continue to lend money to support the UK economy.
Bank governor Mark Carney said they would be able to, even in "the unlikely event" of no deal when Brexit happens.
Mr Carney said that all parties were working to avoid the situation, but warned that if the UK did leave in a "sharp, disorderly" way there would be some economic "pain" for households and businesses.
The worst case scenario the Bank imagined in the stress tests included a 33% fall in house prices, a rise in interest rates from 0.5% to 4% within two years, and the unemployment rate rising to 9.5% from its current rate of 4.3%.
The tests flagged up other Brexit concerns.
Six million UK customers buy insurance policies from EU companies and, after Brexit, those firms would not have permission to collect premiums or pay claims.
The same is true of the financial insurance that banks buy and sell to each other. Here the numbers are staggering - the notional value of those contracts are £26 trillion.
Without legislation from both the EU and the UK they may be hard to enforce and that would create financial instability.
The Bank of England offered a checklist of items to mitigate the impact of Brexit which included:
A clear EU-UK regulatory framework in place
Timely agreement on an implementation period
Legislation on both sides to preserve continuity of existing cross-border insurance and derivative contracts
Michael Snapes, financial services director at PwC, said: "There is some comfort to be had in the knowledge that the UK banking system is strong enough to withstand a severe economic deterioration.
"The results suggest that the major UK banks may finally be emerging fully from their post-crisis downturn."