Joseph Haydn's Symphony No. 13 in D major was written in 1763 for the orchestra of Haydn's patron, Prince Nikolaus Esterházy, in Eisenstadt.
The work can be precisely dated thanks to a dated score in Haydn's own hand in the National Library of Budapest. Two other Haydn symphonies are known to have been written in the same year: the Symphony No. 12 and the Symphony No. 40.
A typical symphony at this time was written for a pairs of oboes and horns and strings, but the Eisenstadt orchestra had recently taken on two new horn players, and Haydn wrote this symphony for an expanded ensemble of one flute, two oboes, four horns, timpani and strings (violins divided into firsts and seconds), violas, cellos and double basses, with bassoon doubling the bass-line. The timpani part in the autograph score is not in Haydn's hand, but it is quite possibly authentic: he may have written it on a separate sheet, with somebody else adding it to the score at a later date.
The first movement opens with held chords in the winds and the strings playing a simple figure based on an arpeggio:
The movement can be considered to be in sonata form, with a repeated first half beginning in the home key of D major and modulating to A major, then a second half beginning with a development of previously heard material (passing through B minor) followed by a recapitulation of the first half, now entirely in D major (this second half also repeated). However, there is little "second subject" to speak of – following the key change in the first half, the music is mainly based on simple scale passages.