This concerto makes use of a popular chamber music ensemble of the time (flute, violin, and harpsichord), which Bach used on their own for the middle movement. It is believed that it was written in 1719, to show off a new harpsichord by Michael Mietke which Bach had brought back from Berlin for the Cöthen court. It is also thought that Bach wrote it for a competition at Dresden with the French composer and organist Louis Marchand; in the central movement, Bach uses one of Marchand's themes. Marchand fled before the competition could take place, apparently scared off in the face of Bach's great reputation for virtuosity and improvisation.