Trade diversion is an economic concept that describes the shift in trade patterns caused by the formation of a customs union or a free trade agreement. It occurs when a country or a group of countries, part of an economic community, start trading more with each other and less with the rest of the world, leading to a change in the direction of trade flows.