Theres a common real estate move where you can defer your taxes on a real estate sale if you use the proceeds to buy a similar amount of property (dollar amount) [0].
So as long as the proceeds from the sale go into a similar type of property/business then you can defer taxes for a future date.
[0]:https://www.irs.gov/newsroom/like-kind-exchanges-under-irc-c...