A legal agreement between the landlord, tenant, and lender that outlines the rights of each party in the event of default.