Governments may impose tariffs to raise revenue or to protect domestic industries from foreign competition, since consumers will generally purchase foreign-produced goods when they are cheaper.
A tariff is a tax on imports or exports. Money collected under a tariff is called a duty or customs duty. Tariffs are used by governments to generate revenue or to protect domestic industries from competition.