With a 1031 exchange
https://andrerealestateinvestinglslq530.weebly.com/blog/understanding-1031-exchanges-a-complete-article-to-this-effective-real-estate-tax-strategy
With a 1031 exchange, investors have a limited window of time to identify and acquire replacement properties to qualify for tax deferral benefits