An agreement where a borrower pledges collateral to secure a debt or as a condition extending credit.