Prelude and Fugue in B minor, BWV 544 is a piece of organ music written by Johann Sebastian Bach sometime between 1727 and 1731, during his tenure in Leipzig. Unlike most other organ preludes and fugues of Bach, the autograph fair copy of the score survives.