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:
The next example is in Bb major. Bb flat is now the tonic chord: