Piano Sonata No. 2 G Sharp Minor Op. 19 (Sonate-Fantaisie) was composed over a relatively lengthy period of time.
Alexander Scriabin first began work on it in 1892, but in the summer of 1896, after Scriabin had performed the sonata several times in public in Paris, he told his publisher that the piece was finished but even despite having revised it 7 times he was still completely dissatisfied with it. It was not till 1898 that the work was in Scriabin's eyes good enough to be finally published.