I've never been through a foreclosure, but my understanding is that there are "recourse" loans and "non-recourse" loans. Recourse = they can go after other assets, non-recourse = the bank is SOL, they get the collateral (the house) and nothing more. First mortgages are usually non-recourse (mandated by law in some states), second mortgages are sometimes recourse loans.