Haydn trained as a choirboy at St Stephen’s Cathedral in Vienna before embarking upon his long career. His first appointment was as music director at Lukavec, but financial problems soon closed Count Morzin’s orchestra and terminated this employment.
In 1761 Haydn entered the service of the Esterházy family, where he remained for thirty years. Beginning as Vice-Kapellmeister, he took over the leading position in 1766, succeeding Gregor Werner. In the early years of this service Haydn’s orchestra comprised at least six violins, three violas, three cellos and two double-basses, together with pairs of oboes and horns, with other instruments added occasionally.
His relationship with the Esterházy establishment, first at Eisenstadt and from 1767 at Esterháza (the new palace modelled on Versailles), enabled Haydn to view his isolation positively: "Cut off from the world, I was forced to become original." His development was crucial to the evolution of the classical style. While he did not invent the symphony or the string quartet, more than any other composer he guided these genres from infancy to maturity. It is hardly surprising that he inspired Mozart and other composers beyond.
The palace of Esterháza contained an opera house, and after 1777 opera became Haydn’s priority for several years. The "heroic-comic drama" Orlando paladino of 1782 gained an international reputation, with performances in Vienna and Prague. Mixing seria and buffa styles, dramatic recitatives and dazzling arias combine with comic characterisation; the bluff squire Pasquino even has a patter catalogue aria. Other fine operas include La vera constanza (True Constancy) and La fedeltà premiata (Loyalty Rewarded).
Haydn composed more than a hundred symphonies and was imaginatively independent, his works invariably having special personalities. Several begin with slow movements in ‘church sonata’ style, including No. 22, The Philosopher (1764) and No. 49, La Passione (1768). He also contributed to the expressive Sturm und Drang (Storm and Stress) style, in which emotional intensity reacted against the more superficial galant style, as for instance in Symphony No. 44, Trauer (1772). Meanwhile, Haydn became famous throughout Europe, and in 1785 he received a prestigious commission from "Le Concert de la Loge olympique". The resulting Paris Symphonies (Nos. 82-87) were his most ambitious and sophisticated to date.
In 1790 Prince Nikolaus died, and Haydn was allowed to leave. The impresario Johann Peter Salomon travelled in person to invite him to London. He accepted, and between 1791 and 1795 composed twelve symphonies, Nos. 93-104, which are his crowning achievement. His finales particularly are miracles of intellectual organisation, combining with music’s most pointed wit.