Economic history

A monetary authority lends short-term funds to a bank facing a sudden surge in withdrawals, while the bank's assets are expected to cover its obligations over time. What is the main aim of this intervention?