Haydn wrote his Sonata in D in 1767. First published in 1788 by Artaria, as no. 2 of a Tre Sonate book, the piece has subsequently been catalogued as Op. 53/2 or Hob. XVI:19, the last one being the norm for Haydn music. It is sometimes titled sonata instead of divertimento.