To avoid foreclosure ("in lieu" of foreclosure), the owner gives a conveyance deed to the lender conveying all ownership in the property over to the lender. The owner vacates the premises and in return, the mortgagee does not foreclose on the property and does not go after the mortgagor for any deficiency amounts due.
For more detailed information, see our related Real Property terms: