In music, a riff is an ostinato; a repeated chord progression, pattern, or melody, often played by rhythmic instruments. The riff is the base of the musical composition. They are most common in rock music, funk, and jazz.