A deficiency judgment is a legal ruling issued by a court when the proceeds from the sale of a foreclosed property are insufficient to cover the outstanding debt owed by the borrower to the lender. This judgment allows the lender to pursue the borrower for the remaining balance of the debt after the sale of the property.