When a California home with two mortgages is foreclosed on, the second mortgage lien is almost always erased from the property’s title if the first mortgage holder runs the sale. That does not automatically erase what you owe on the second loan. Whether the second mortgage lender can still collect from you after a foreclosure in California depends on how that loan was originally used, which lender forecloses, and which anti-deficiency statute covers your situation.
What Happens to the Second Mortgage When the First Forecloses
The most common path is the first mortgage lender initiating a nonjudicial foreclosure through a trustee’s sale after the borrower falls behind.1California Legislative Information. California Civil Code 2924-2924k At auction, proceeds pay foreclosure costs first, then the senior mortgage. Anything left flows to junior lienholders in priority order. In practice the sale rarely brings in more than the first mortgage balance, so nothing reaches the second.
When there is nothing left for the second mortgage holder, the senior foreclosure extinguishes the junior lien from title entirely. The auction buyer takes the property free of the second mortgage.
Here is the distinction that trips people up: the lien is gone, but the debt may survive. The promissory note you signed is a separate legal obligation from the deed of trust that secured it. Once the lien is wiped out, the second lender becomes what California law calls a “sold-out junior lienholder,” holding an unsecured claim against you personally rather than a claim against the property.
What Happens When the Second Mortgage Forecloses Instead
A second mortgage lender can also start a foreclosure, though it happens far less often. This usually arises when the borrower is current on the first mortgage but has stopped paying the second. The junior lender will generally only bother if the property has enough equity above the first mortgage to make it worthwhile.
When a junior lienholder forecloses, the sale happens subject to the senior lien. The buyer takes ownership but inherits the first mortgage, which stays attached to the property. The new owner has to keep paying that senior loan or face a separate foreclosure from the first lender. Because the bidder is effectively paying the auction price on top of assuming the first mortgage, bids tend to be very low. Junior-lien foreclosures stay rare unless there is real equity to chase.
Can the Second Mortgage Lender Still Sue You
California has some of the strongest anti-deficiency laws in the country, but they do not protect every borrower in every situation. Two statutes do most of the work, and which one applies to your loan makes a real difference.
Purchase Money Loans Are Fully Protected
Code of Civil Procedure Section 580b prohibits any deficiency judgment on a loan used to buy a home of four units or fewer that the borrower occupies.2California Legislative Information. California Code of Civil Procedure 580b A purchase money second mortgage is one taken out at the same time as the first mortgage to help finance the purchase, such as an 80/10/10 piggyback loan. If your second mortgage fits that description, the lender cannot sue you for the unpaid balance after foreclosure.
Section 580b also extends to refinances of purchase money loans, as long as the refinance did not include new cash advances beyond what was needed to pay off the original purchase money debt and cover closing costs.2California Legislative Information. California Code of Civil Procedure 580b If you refinanced a purchase money second and took no cash out, the protection carries over. If the refinance included a cash-out portion, only that new advance loses protection.
Nonjudicial Foreclosure Protects You From the Foreclosing Lender Only
Code of Civil Procedure Section 580d bars the foreclosing lender from pursuing a deficiency judgment after a trustee’s sale.3California Legislative Information. California Code of Civil Procedure 580d If the second mortgage lender itself forecloses through a trustee’s sale, that lender cannot then turn around and sue you for any remaining balance.
Section 580d only applies to the lender that exercised the power of sale. It does not protect you against a sold-out junior lienholder. The California Supreme Court set this rule in Roseleaf Corp. v. Chierighino, holding that Section 580d “does not appear to extend to a junior lienor whose security has been sold out in a senior sale.”4Justia. Roseleaf Corp v Chierighino The court reasoned that blocking the junior lender’s only remaining remedy would be unfair when the junior had no control over the senior’s decision to foreclose.
Putting It Together
If your second mortgage was a purchase money loan, Section 580b protects you regardless of who forecloses or how. The lender cannot come after you. If your second mortgage was a HELOC, a cash-out refinance, or any other non-purchase-money loan, and the first mortgage lender forecloses through a trustee’s sale, the sold-out junior lender keeps the right to sue you personally for the full unpaid balance. That lawsuit is for an unsecured debt, similar to a credit card collection action, but a judgment can still lead to wage garnishment or bank account levies.
How Long the Second Lender Has to Come After You
The sold-out junior lender does not have unlimited time. Because the lien has been wiped out, the claim now rests on the promissory note as a written contract. Under California Code of Civil Procedure Section 337, the statute of limitations for a lawsuit on a written instrument is four years.5California Legislative Information. California Code of Civil Procedure 337 The clock generally starts when the borrower defaults on the note or when the senior foreclosure sale extinguishes the junior lien.
This window matters strategically. Some lenders never bother pursuing a sold-out junior claim, especially when the remaining balance is modest or the borrower appears judgment-proof. Others sell the debt to collection agencies that file suit right before the deadline. Tracking the four-year period is worth doing, because once it passes, the lender loses the ability to sue.
Tax Consequences If the Debt Gets Canceled
If the sold-out junior lender writes off the balance or settles for less than you owe, the IRS generally treats the forgiven amount as taxable income. A lender that cancels $600 or more of debt must send you a Form 1099-C reporting the canceled amount.6Internal Revenue Service. About Form 1099-C, Cancellation of Debt You have to report it on your federal return unless an exclusion applies.
The most broadly available exclusion is insolvency under 26 U.S.C. ยง 108. If your total liabilities exceeded the fair market value of your total assets immediately before the debt was canceled, you were insolvent, and you can exclude the canceled amount from income up to the extent of your insolvency.7Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness For someone who just lost a home and still has more debts than assets, this often covers the entire canceled amount.
A separate exclusion for qualified principal residence indebtedness previously covered up to $750,000 in forgiven mortgage debt used to buy, build, or improve a main home. That exclusion expired for debts discharged after December 31, 2025, unless the discharge arrangement was entered into in writing before that date.7Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness Congress has extended this provision multiple times before, so it is worth checking whether new legislation has revived it. For 2026 discharges without a prior written arrangement, insolvency is the primary tool.
Using Bankruptcy to Wipe Out a Second Mortgage
Bankruptcy offers another path, and it works differently depending on the chapter.
Chapter 7
A Chapter 7 discharge eliminates your personal liability for the second mortgage debt, so the lender can no longer sue you or garnish wages to collect.8United States Courts. Discharge in Bankruptcy The lien itself survives and stays attached to the property. If you keep the home, the second mortgage lender still has a claim against the property even though it cannot pursue you personally. That matters if you later sell or refinance.
Chapter 13 Lien Stripping
Chapter 13 offers a more powerful tool called lien stripping. If your home is worth less than what you owe on the first mortgage alone, the second mortgage is completely unsecured. A Chapter 13 plan can then reclassify the second mortgage as unsecured debt and remove the lien from the property.9Office of the Law Revision Counsel. 11 USC 1322 You pay whatever your disposable income allows toward unsecured creditors during the three-to-five-year plan, and any remaining balance on the stripped second is discharged when the plan completes.
Lien stripping only works when the first mortgage balance equals or exceeds the home’s current market value. If even one dollar of equity exists above the first mortgage, the second retains some secured status and cannot be stripped. Getting an accurate appraisal is essential, and the lender will almost certainly challenge a low valuation. This option is available only in Chapter 13, not Chapter 7.