The autograph manuscript of BWV 582 is currently considered lost; the work, as is typical for pieces by Bach and his contemporaries, is known only through a number of copies. There is some evidence that the original was notated in organ tablature. It is not known precisely when Bach composed the work, but the available sources point to the period between 1706 and 1713. It is possible that BWV 582 was composed in Arnstadt soon after Bach's return from Lübeck (where he may have studied Buxtehude's ostinato works).