A first mortgage refers to a home loan that has first-priority lien against a property, making the lender the first in line for claims against it should the borrower default.
This lien can only be removed after the loan against property is fully repaid.
From the business perspective of a lender, the goal or best case scenario is always to be the first mortgage.