A second mortgage basically refers to a loan with a second-priority lien on a property after another mortgage.
A first mortgage typically uses the property as collateral for the bulk of the borrowed funds to finance the purchase of it.
When a second mortgage comes into the picture, it is usually due to some form of seller financing or any type of credit facilities involving home equity.