Wir danken dir, Gott, wir danken dir (We thank you, God, we thank you), BWV 29, is a cantata by Johann Sebastian Bach, written in Leipzig in 1731. Bach used excerpts of the music from the choral movement for both the Gratias agimus tibi and Dona nobis pacem of his Mass in B minor. The instrumentation reflects the festive occasion for which it was written: soprano, alto, tenor and bass soloists, four-part choir, solo organ and an orchestra consisting of three trumpets, timpani, two oboes, two violins, viola and basso continuo. The cantata is in seven movements, and it is one of the few to open with an orchestral sinfonia.