 Brahms wrote a fair amount of music early in his life, which he destroyed, did not think it worthy of publication. Then he wrote a scherzo and a piano sonata, both of which were published, but he himself chose this piece, which is written after those two, as his first published composition, his Opus I, and it's a piano sonata in C major.