what is deed in lieu of forclosure?

and how does this work?

VERY basically, you give them (presumably the bank) the property (deed) and they don’t foreclose. lose your house, save your credit.

you will probably still be responsible for any shortfall, unless you negotiate it into the deal.