只有 (zhǐyǒu) means "only if," and is used with 才 (cái) to emphasize that only one course of action will bring about the desired outcome.
只有 + Essential Condition + 才 + Desired Outcome
Category: B2 grammar points