The Violin Sonata no. 1 was composed in 1720 as part of the 6 Violin Sonatas and Partitas. Though the key signature of the manuscript suggests D minor, such was a notational convention in the Baroque period, and therefore does not necessarily imply that the piece is in the Dorian mode. The second movement, the fugue, would later be reworked for the organ (in the Prelude and Fugue, BWV 539) and the lute (Fugue, BWV 1000), with the latter being two bars longer than the violin version.