The Toccata and Fugue in D minor, BWV 565, is a piece of organ music written, according to its oldest extant sources, by Johann Sebastian Bach (1685–1750). The piece opens with a toccata section, followed by a fugue that ends in a coda. Scholars differ as to when it was composed. It could have been as early as . Alternatively, a date as late as the 1750s has been suggested. To a large extent, the piece conforms to the characteristics deemed typical of the north German organ school of the Baroque era with divergent stylistic influences, such as south German characteristics.