I believe the answer is: To discourage consumers from purchasing foreign goods
Tariffs is the additional payment that must be made for foreign products to enter a country. When a tariff is imposed, the price of the foreign product would most likely be increased as it arrive in the local market. This tend to discourage consumers and make them choose cheaper local products.