Johann Sebastian Bach composed the Prelude in D Major, BWV 850 (from The Well‑Tempered Clavier, Book 1) circa 1722 in Köthen, or early 1730s in Leipzig during Book 1’s final compilation. The exact year is uncertain; the autograph manuscript is lost. It’s one of 24 prelude‑fugue pairs in all major/minor keys.