A tariff is a tax imposed by a government on imported or exported goods. It is used to regulate trade, protect domestic industries, generate revenue, and sometimes influence international economic relations. Tariffs often affect product prices, making imports more expensive compared to locally produced goods.