section_path: Life/Leipzig (1723–1750)/Final years and death (1740–1750)
section_name: Final years and death (1740–1750)
paragraph_text: Final years and death (1740–1750)
  
  From 1740 to 1748 Bach copied, transcribed, expanded or programmed music in an older polyphonic style (stile antico) by, among others, Palestrina (BNB I/P/2), Kerll (BWV 241), Torri (BWV Anh. 30), Bassani (BWV 1081), Gasparini (Missa Canonica) and Caldara (BWV 1082). Bach's own style shifted in the last decade of his life, showing an increased integration of polyphonic structures and canons and other elements of the stile antico. His fourth and last Clavier-Übung volume, the Goldberg Variations, for two-manual harpsichord, contained nine canons and was published in 1741. Throughout this period, Bach also continued to adopt music of contemporaries such as Handel (BNB I/K/2) and Stölzel (BWV 200), and gave many of his own earlier compositions, such as the St Matthew and St John Passions and the Great Eighteen Chorale Preludes, their final revisions. He also programmed and adapted music by composers of a younger generation, including Pergolesi (BWV 1083) and his own students such as Goldberg (BNB I/G/2).
  
  In 1746 Bach was preparing to enter Lorenz Christoph Mizler 's Society of Musical Sciences. In order to be admitted Bach had to submit a composition, for which he chose his Canonic Variations on "Vom Himmel hoch da komm' ich her", and a portrait, which was painted by Elias Gottlob Haussmann and featured Bach's Canon triplex á 6 Voc. In May 1747, Bach visited the court of King Frederick II of Prussia in Potsdam. The king played a theme for Bach and challenged him to improvise a fugue based on his theme. Bach obliged, playing a three-part fugue on one of Frederick's fortepianos by Gottfried Silbermann, which was a new type of instrument at the time. Upon his return to Leipzig he composed a set of fugues and canons, and a trio sonata, based on the Thema Regium (theme of the king). Within a few weeks this music was published as The Musical Offering and dedicated to Frederick. The Schübler Chorales, a set of six chorale preludes transcribed from cantata movements Bach had composed some two decades earlier, were published within a year. Around the same time, the set of five canonic variations which Bach had submitted when entering Mizler's society in 1747 were also printed.
  
  Two large-scale compositions occupied a central place in Bach's last years. From around 1742, he wrote and revised the various canons and fugues of The Art of Fugue, which he continued to prepare for publication until shortly before his death. After extracting a cantata, BWV 191 from his 1733 Kyrie-Gloria Mass for the Dresden court in the mid-1740s, Bach expanded that setting into his Mass in B minor in the last years of his life. Although the complete mass was never performed during the composer's lifetime, it is considered among the greatest choral works in history.
  
  In January 1749, Bach's daughter Elisabeth Juliane Friederica married his pupil Johann Christoph Altnickol. Bach's health was declining. On 2 June, Heinrich von Brühl wrote to one of the Leipzig burgomasters to request that his music director, Gottlob Harrer, fill the Thomaskantor and Director musices posts "upon the eventual... decease of Mr. Bach". Becoming blind, Bach underwent eye surgery, in March 1750 and again in April, by the British eye surgeon John Taylor, a man widely understood today as a charlatan and believed to have blinded hundreds of people. Bach died on 28 July 1750 from complications due to the unsuccessful treatment.
  
  An inventory drawn up a few months after Bach's death shows that his estate included five harpsichords, two lute-harpsichords, three violins, three violas, two cellos, a viola da gamba, a lute and a spinet, along with 52 "sacred books", including works by Martin Luther and Josephus. The composer's son Carl Philipp Emanuel saw to it that The Art of Fugue, although still unfinished, was published in 1751. Together with one of the composer's former students, Johann Friedrich Agricola, the son also wrote the obituary (" Nekrolog "), which was published in Mizler's Musikalische Bibliothek, a periodical journal produced by the Society of Musical Sciences, in 1754.