Deposit insurance is a guarantee, usually by a public agency, that depositors will be repaid up to a limit if their bank fails. A lender of last resort
is a central bank that lends to banks short of cash, against good collateral, when no one else will.