After Telemann died at the end of 1767, Bach was able to replace him as the director of church music for the five churches in Hamburg. His duties included teaching music, and organising about 200 musical performances a year. This position allowed Bach to write church music including 21 settings of the Passion, 70 cantatas, motets and liturgies. He also organised concerts and other performances throughout the year. Bach became ill in the summer of 1788 and died from a chest ailment on December 14. He was buried in the Church of St. Michael in Hamburg. His grave was forgotten, and only rediscovered in 1925.