The work, "often called the crown of his chamber music," began life as a string quintet (completed in 1862 and scored for two violins, viola and two cellos). Brahms transcribed the quintet into a sonata for two pianos (in which form Brahms and Carl Tausig performed it) before giving it its final form. Brahms destroyed the original version for string quintet, but published the Sonata as Op. 34b. As a piano quintet it was given its premiere on 22 June 1866, at the Leipzig Conservatory.