Used to indicate that something is true for the most part, or that the main reason/component is as stated. Common in both spoken and written Japanese.
The industry in this region depends mainly on agriculture.
His success is primarily the result of hard work.