A 1031 exchange is a swap of one investment property for another that allows capital gains taxes to be deferred.