In music, a tonic is the first note of a scale and serves as the central pitch around which a piece of music is organized, providing a sense of resolution and rest. It is fundamental in establishing the key of a composition and is often the starting and ending note of melodies and harmonies.