Schubert finally left his teaching position to dedicate himself completely to musical pursuits. During the summer of 1818, the young composer worked as a private music teacher to the aristocratic Esterházy family. When he left that post in the fall, Schubert lived a somewhat bohemian lifestyle, composing and spending time with a group of friends that acted as his personal support system. In 1820, Schubert was commissioned by two opera houses, the Karthnerthor Theatre and Theatre-an-der-Wein, to compose a pair of operas. He wrote Zwillingsbruden, and Zauberharfe, both of which were unenthusiastically received. Schubert failed to secure a contract with a publisher, as none were willing to take a chance on a relatively unknown composer who wrote (harmonically) untraditional music. Schubert, along with the support of his artistic friends, published his own work for a collection of roughly 100 subscribers. These efforts, however, were financially unrewarding, and Schubert struggled to sustain himself. His work garnered little attention and contemporary composers dismissed his music as presumptuous and immature.
In 1823, Schubert was elected to the Musikverein of Graz, as an honorary member. Though this brought no financial reward and was an inconsequential appointment, Schubert relished its slight recognition, and to show his gratitude, composed his famous Unfinished Symphony. Five years later, Schubert's music was featured at a concert at Vienna's Musikverein. His work was received quite enthusiastically, and to much critical acclaim. This marked the only time during the composer's life that he enjoyed such success. This seemed to provide Schubert with a renewed sense of optimism, and despite illness, the composer continued to produce at an incredible rate. He began to organize a scheme to increase his artistic popularity, by continuing to evaluate his work and progress as a musician, perhaps even planning to study harmony privately. Schubert's health did not improve, and he soon found himself at death's door. During the composer's last moments, he instructed his brother Ferdinand to ensure that he would be buried alongside Ludwig van Beethoven's grave. Schubert revered the legendary composer, and was grateful to him, as Beethoven had praised his work after hearing a selection of songs. Schubert also highly regarded the work of both Franz Joseph Haydn and Wolfgang Amadeus Mozart. Franz Schubert died of syphilis. Despite his short life, Schubert produced a wealth of symphonies, operas, masses, chamber music pieces, and piano sonatas, most of which are considered standard repertoire. He is known primarily for composing hundreds of songs including Gretchen am Spinnrade, and Erlkonig. He pioneered the song cycle with such works as Die Schöne Müllerin, and Die Winterreise, and greatly affected the vocal writing of both Robert Schumann and Gustav Mahler.