A 1031 exchange, also known as a like-kind exchange, is a tax-deferred swap of two investment properties. This form of transaction allows you to avoid paying capital gains tax on the sale of a property by reinvesting the sale profits in a similar property.