It depends.
The treatment would be dependent upon whether this was for a principle residence or a rental/investment property.
Please see the following link specifically for information as it relates to foreclosures.
Foreclosure treatment for taxes
Please see the following link for more details as to whether it would be taxable to you based upon the type of debt that was cancelled.
Tax treatment of debt cancellation
Form 1099-A treatment for taxes
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"