The harmony of the piece is in the key of C major, though it begins in E minor. The B section goes into the Dominant (G major), and reuturns to the original key when entering back in to the first theme. This is a typical Baroque harmonic style, in that the major composers did not stray from this I-V-I harmony.