The Sonata in B minor (German: Klaviersonate h-moll), S.178, is a sonata for solo piano by Franz Liszt. It was completed in 1853 and published in 1854 with a dedication to Robert Schumann.
Liszt noted on the sonata's manuscript that it was completed on February 2, 1853, but he had composed an earlier version by 1849. At this point in his life, Liszt's career as a traveling virtuoso had almost entirely subsided, as he had been influenced towards leading the life of a composer rather than a performer by Carolyne zu Sayn-Wittgenstein almost five years earlier. Liszt's life was established in Weimar and he was living a comfortable lifestyle, composing, and occasionally performing, entirely by choice rather than necessity.
The Sonata was dedicated to Robert Schumann, in return for Schumann's dedication of his Fantasie in C major, Op. 17 (published 1839) to Liszt. A copy of the Sonata arrived at Schumann's house in May 1854, after he had entered Endenich sanatorium. His wife Clara Schumann did not perform the Sonata; according to scholar Alan Walker she found it "merely a blind noise".
The Sonata was published by Breitkopf & Härtel in 1854 and first performed on January 27, 1857 in Berlin by Hans von Bülow. It was attacked by Eduard Hanslick who said "anyone who has heard it and finds it beautiful is beyond help".Johannes Brahms reputedly fell asleep when Liszt performed the work in 1853, and it was also criticized by the pianist and composer Anton Rubinstein. However, the Sonata drew enthusiasm from Richard Wagner following a private performance of the piece by Karl Klindworth on April 5, 1855. Otto Gumprecht of the German newspaper Nationalzeitung referred to it as "an invitation to hissing and stomping". It took a long time for the Sonata to become commonplace in concert repertoire, both because of its technical difficulty and negative initial reception due to its status as "new" music. However by the early stages of the twentieth century, the piece had become established as a pinnacle of Liszt's repertoire and has been a popularly performed and extensively analyzed piece ever since.