Throughout his life as a musician, Johann Sebastian Bach composed cantatas for both secular and sacred use. His church cantatas are cantatas which he composed for use in the Lutheran church, mainly intended for the occasions of the liturgical year.
Bach's Nekrolog mentions five cantata cycles: "Fünf Jahrgänge von Kirchenstücken, auf alle Sonn- und Festtage" (Five year-cycles of pieces for the church, for all Sundays and feast days), which would amount to at least 275 cantatas, or over 320 if all cycles would have been ideal cycles. The extant cantatas are around two thirds of that number, with limited additional information on the ones that went missing or survived as fragments.
The listing below contains cycle information as available in scholarship, and may include cantatas that are or were associated with Bach (e.g., listed in the BWV catalogue), but were not actually composed by him.
Bach's earliest cantatas date from more than 15 years before he became Thomaskantor in Leipzig in 1723. His earliest extant cantatas were composed in Arnstadt and Mühlhausen. In 1708 he moved to Weimar where he wrote most of his church cantatas before the Leipzig era. These pre-Leipzig cantatas are not generally grouped as one of the five cycles mentioned in the Nekrolog. The extant cantatas of the pre-Leipzig era are primarily known by their recasting as a cantata in one of the Leipzig cycles.
Bach started composing cantatas around 1707, when he was still an organist in Arnstadt. The first documented performances of his work take place in Mühlhausen, where he was appointed in 1708.
In Weimar, Bach was from 1714 to 1717 commissioned to compose one church cantata a month. In the course of almost four years there he thus covered most occasions of the liturgical year. The expression "Weimar cycle" has been used for the cantatas composed in Weimar from 1714 (which form the bulk of extant cantatas composed before Bach's Leipzig time).