The letter ⟨g⟩ is silent when paired with ⟨n⟩ — either at the start of a word (gnat, gnome) or at the end (sign, foreign).
Compounds and derived forms.
Only at the end of a word.