You use chiefly to indicate that a particular reason, emotion, method, or feature is the main or most important one.
He joined the consular service in China, chiefly because this was one of the few job vacancies.
他到驻华领事馆工作,主要是因为这是为数不多的几个空缺职位之一。
His response to attacks on his work was chiefly bewilderment.
对于人们对他工作的指责,他的反应主要是很困惑。