This is possible in some circumstances with real estate - it's called a 1031 exchange, and you can sell one piece/set of real property, roll the profits directly into purchasing another piece/set of real property, and not owe capital gains taxes on the profits from the first sale, although they will be owed if you eventually sell the second set of properties for cash.