Our image of the composer as an "artist," concerned with doing only what he or she wants to, is rooted in the nineteenth century. Composers of previous periods did not often have that luxury, but Franz Joseph Haydn did. Most of his creative life was spent in the service of the Esterházy family, writing pieces for their needs and desires. For example, he composed over 125 trios for the baryton -- an instrument something like a viola da gamba -- simply because it was the instrument that Prince Nikolaus played.
Surprisingly, these seeming restrictions, compounded by his frequent sojourns to the Esterházy summer palace at Esterháza (far removed from the musical center of Vienna) did little to dampen Haydn's creativity. Instead, he stated that this isolation and his ability to work daily with the musicians he was writing for was a perfect situation. Nor did it diminish his fame. By the 1780s, his music had been published all over Europe, and he was well-regarded in the music world. Because of this, he was invited to various cities and commissioned to write musical pieces for premieres in those cities. Most notable are the six symphonies he wrote for the Concerts Spirituels in Paris (Nos.82-87, called his "Paris" symphonies) and the twelve he wrote for the concert promoter Johann Peter Salomon in London (Nos.93-104, called the "London" symphonies). His final works, mostly sacred music for his patron, culminated in two large oratorios, The Creation (1798) and The Seasons (1801), the former being one of his most famous works.
Haydn is often referred to as "Papa" Haydn, and there is some justification for this. Although he did not invent either the symphony or the string quartet, he was a central figure in their development. His symphonies (especially the "Paris" and "London" sets) show a complete mastery of form and substance, setting the stage for the works of Mozart and Beethoven. Haydn's "paternity" is just as clear in the string quartets. Here Haydn helped transform the genre from little more than a string divertimento (with the emphasis on the top voice) to a type of chamber music in which all parts play an equal role. These ideas directly influenced Mozart, who responded with six quartets dedicated to Haydn (1782-1785). Haydn's style is detectable in the early music of Beethoven as well.