I think the OP means he went from -$530k to -$9k debt
, not net worth
The mortgage was collateralized against the house. OP sold the house and paid off the mortgage.
Not really an increase in net worth, but certainly a way to pay down debt.
Congrats in any event.