Usually after the borrower has missed three consecutive mortgage payments. The lender will record a notice of default against the property. And unless the debt is satisfied, the lender will foreclose on the mortgage and proceed to set up a trustee sale, where the property is sold to the highest bidder.