It's an involuntary conversion.
https://www.irs.gov/businesses/small-businesses-self-employed/involuntary-conversions-real-estate-ta...