When we refer to first lien or second lien when referring to debt, we are talking about the security that the lender has taken to back up the loan – otherwise known as the collateral. First lien has the highest ranking legal right to that security. Second lien ranks below first lien.