The $$\left.\text{vii}^{\circ}{}\right.$$ chord has dominant function (see the Harmonic Function Flowchart). Since chords of dominant function typically resolve to chords of tonic function, diminished triads as well as half–diminished and fully–diminished seventh chords occur as secondary diminished chords.