The Fed also serves the role of lender of last resort, providing banks with liquidity and regulatory scrutiny to prevent them from failing and creating financial panic in the economy.