The tonic chord is built over the first degree of the scale. The tonic is the tonal center, the resting point.
Listen carefully to the tonic chords. Since in this example the C major chord is the tonal center, we say that we are in the key of C major:
Identify the tonic chords in the next example. We are now in another key, so listen carefully: