Foreclosure is a legal process where the lender repossesses a property due to the homeowner's inability to keep up with their mortgage payments.