Haydn was 29 when he was offered a position as Vice-Kapellmeister to Prince Esterhazy in Eisenstadt, the most important noble family in Hungary. Before taking up the post, he married Anna Keller. However, the marriage was unhappy and childless, and Haydn had several affairs during his life. In 1766 he was appointed liveried (uniformed) Kapellmeister and the prince obliged him to buy a house in Eisenstadt so that he would have a representative home. He also had to accompany his prince to his other residences, so the busy Haydn spent part of the year with his wife in Eisenstadt and others in Vienna or Esterhaza. When the Esterhaza palace was expanded into a completely oversized absolutist magnificent building, it had a large theater hall that could accommodate an entire orchestra. So the Haynds moved to the new Esterhaza Castle and there the 47-year-old met the 19-year-old Luigia Polzelli, who was engaged with her husband as a singer at the court. They had a son, Antonio, in 1883, who is believed to have been Haydn’s illegitimate child. During these Esterhaza years Haydn composed, staged and conducted one work after another and became the entertainment machine of the palace. This state of affairs lasted until 1790, when with the death of the prince the orchestra was disbanded. Haydn went back to Vienna after many decades.