Tariffs are a tax. Enforced by a government on goods entering their country.
If a company in Country A wants to sell goods brought in from Country B, they must pay their own Government the tariff when the goods enter customs.
This affects the consumers in Country A, because the companies who import goods from Country B must raise prices to cover the tariff.
This also affects the profits of the company in Country A and the producers in Country B because the demand for those goods will decrease.
There are other effects too, this is the simplification. !gptimage2