Bach wrote many fugues, eventually he decided to write a collection called "The Art of Fugue". His plan was to publish it, but he died before he could finish it (his son later published it in his honor, as Bach's last published piece). In the last year or two of his life, he became blind in spite of two eye operations.