Foreclosure is the process by which a lender takes possession of a property when the borrower fails to make mortgage payments. Giving your house back to the bank is typically done voluntarily and with the agreement of both parties.