Tariffs are used to restrict imports by increasing the price of goods and services purchased from another country, making them less attractive to domestic consumers.
Because a tariff is a tax, the government will see increased revenue as imports enter the domestic market. Domestic industries also benefit from a reduction in competition, since import prices are artificially inflated.