A customs union is generally defined as a type of trade bloc which is composed of a free trade area with a common external tariff.
Customs unions are established through trade pacts where the participant countries set up common external trade policy. Common competition policy is also helpful to avoid competition deficiency. From Wikipedia