Bach composed his cantata as part of his application for the position of in Leipzig, the official title being (Cantor and Director of Music).
The decision to invite Bach was made by the council on 15 January 1723.