In 1725, on his father's death, Giustini became organist at the Congregazione dello Spirito Santo, and acquired a reputation there as a composer of sacred music: mostly cantatas and oratorios.
They are dedicated to Dom António de Bragança, the younger brother of King João V of Portugal (the Portuguese court was one of the few places where the early piano was frequently played).
These pieces, which are sonate da chiesa, with alternating fast and slow sections (four or five movements per sonata), predate all other music specifically written for the piano by about 30 years.
Harmonically the pieces are transitional between late Baroque and early Classical period practice, and include innovations such as augmented sixth chords and modulations to remote keys.
He conjectures that publication of the work was meant as an honor to Giustini; it "represents a gesture of magnificent presentation to a royal musician, rather than an act of commercial promotion."