The Prelude and Fugue in B♭ minor, BWV 867, is a keyboard composition by Johann Sebastian Bach. It is the 22nd prelude and fugue in the first book of The Well-Tempered Clavier, a series of 48 preludes and fugues by the composer. It was composed in 1722 or earlier.