People can just let the home go to foreclosure, and this will affect their scores for seven years. Or they can do a deed in lieu of foreclosure. With a deed in lieu, you voluntarily give your home to the lender in exchange for the cancellation of your loan. This, too, can create a negative mark on your credit history.