Caldara composed the trumpet sonata during the last years of his life. The piece (with double trumpet chorus) originally introduced the opera 'Cajo Fabbricio' in 1729.