The lender of last resort is a central banking function where the central bank provides emergency loans to financial institutions that are unable to obtain funding from other sources. This role is crucial in maintaining financial stability and preventing a broader economic crisis.