The Rhapsodies, Op. 79, for piano were written by Johannes Brahms in 1879 during his summer stay in Pörtschach, when he had reached the maturity of his career. They were inscribed to his friend, the musician and composer Elisabeth von Herzogenberg. At the suggestion of the dedicatee, Brahms reluctantly renamed the sophisticated compositions from "klavierstücke" (piano pieces) to "rhapsodies".
- No. 1 in B minor. Agitato is the more extensive piece, with outer sections in sonata form enclosing a lyrical central section in B major and with a coda ending in that key.
- No. 2 in G minor. Molto passionato, ma non-troppo allegro is a more compact piece in a more "normal" sonata form.
In each piece, the main key is not definitely established until fairly late in the exposition.