Haydn later became an assistant to composer Nicola Porpora in exchange for lessons, and in 1761 he was named Kapellmeister, or "court musician," at the palace of the influential Esterházy family, a position that would financially support him for nearly 30 years.