A junior mortgage is a loan secured by a property that already has a primary mortgage against it. Because it is recorded after the first mortgage, it sits in a lower lien position and gets paid second if the property is sold or foreclosed. Home equity loans and home equity lines of credit (HELOCs) are the most common forms of junior mortgages. Piggyback loans used during a home purchase are another.
The Consumer Financial Protection Bureau defines it plainly: a second mortgage or junior lien is a loan you take out using your house as collateral while you still have another loan secured by your house.
When a property goes into foreclosure and sells, the proceeds flow to lienholders in the order their liens were recorded. The first mortgage gets paid in full. Only then does the junior mortgage lender receive anything from the remaining proceeds.
Here is the risk that makes this matter: if the property sells for less than the combined balances of both loans, the junior mortgage lender does not get fully repaid. The first mortgage lender absorbs no shortfall. The junior lender absorbs it all. That asymmetric risk is why junior mortgages carry higher interest rates than first mortgages.
A junior mortgage lender does not wait for the first mortgage lender to act. If you stop paying the junior mortgage while keeping the first mortgage current, the junior lender can initiate foreclosure on their own.
The complication is financial. If the junior lender forecloses, they take the property subject to the first mortgage. They would need to pay off the first mortgage to sell the property free and clear. In practice, this is only worth doing if there is enough equity in the property above the first mortgage balance to justify the cost.
When you refinance your first mortgage, your new lender takes a new first lien. If your HELOC was recorded before the new loan, it would technically become the senior lien after the old first mortgage is paid off. Lenders prevent this by requiring the junior mortgage holder to sign a subordination agreement, which voluntarily keeps their lien in the subordinate position behind the new first mortgage.