A tariff is a tax imposed by one country on the goods and services imported from another country. Governments primarily impose tariffs to raise revenue, protect domestic industries, or exert political leverage over another country. It is used to restrict imports by increasing the price of goods and services purchased from another country, making them less attractive to domestic consumers.