Jesus nahm zu sich die Zwölfe, BWV 22 Weimar did not dismiss him and arrested him for disobedience. He was released on 2 December 1717. In Köthen, Bach found an employer who was an enthusiastic musician himself. The court was Calvinist, therefore Bach's work from this period was mostly secular, including the orchestral suites, the cello suites, the sonatas and partitas for solo violin, and the "Brandenburg Concertos". He composed secular cantatas for the court for occasions such as New Year's Day and the prince's birthday, including . He later parodied some of them as church cantatas without major changes, for example . Bach composed his cantata as
Brandenburg Concertos of a trio sonata for two violas and continuo, although the cello has a decorated version of the continuo bass line. In the last movement, the spirit of the gigue underlies everything, as it did in the finale of the fifth concerto. Because King Frederick William I of Prussia was not a significant patron of the arts, Christian Ludwig seems to have lacked the musicians in his Berlin ensemble to perform the concertos. The full score was left unused in the Margrave's library until his death in 1734, when it was sold for 24 groschen (as of 2014, about US$24)