Both federal and state bankruptcy laws allow you to keep some property through exemptions. Any property deemed exempt cannot be sold to repay unsecured debt.