Tariffs are imposed to make imports from foreign countries more expensive than domestic products. Therefore, it indirectly discourages imports.
They are imposed to provide a safe environment for domestic industries.
They encourage domestic industries or firms to grow.