Foreclosure happens when a homeowner fails to make mortgage payments, causing the lender to seek ownership of the property to recover the unpaid debt.