A customs tariff is a tax imposed on imported goods to protect domestic industries and generate revenue for the government. It influences trade patterns, affects consumer prices, and can lead to trade disputes if perceived as protectionist by other countries.