Shostakovich achieved fame in the Soviet Union under the patronage of Soviet chief of staff Mikhail Tukhachevsky, but later had a complex and difficult relationship with the government. Nevertheless, he received accolades and state awards and served in the Supreme Soviet of the RSFSR (1947–1962) and the Supreme Soviet of the Soviet Union (from 1962 until his death).
A polystylist, Shostakovich developed a hybrid voice, combining a variety of different musical techniques into his works. His music is characterized by sharp contrasts, elements of the grotesque, and ambivalent tonality; the composer was also heavily influenced by the neo-classical style pioneered by Igor Stravinsky, and (especially in his symphonies) by the late Romanticism associated with Gustav Mahler.
Shostakovich's orchestral works include 15 symphonies and six concerti. His chamber output includes 15 string quartets, a piano quintet, two piano trios, and two pieces for string octet. His solo piano works include two sonatas, an early set of preludes, and a later set of 24 preludes and fugues. Other works include three operas, several song cycles, ballets, and a substantial quantity of film music; especially well known is The Second Waltz, Op. 99, music to the film The First Echelon (1955–1956), as well as the suites of music composed for The Gadfly.
Born at Podolskaya street in Saint Petersburg, Russia, Shostakovich was the second of three children of Dmitri Boleslavovich Shostakovich and Sofiya Vasilievna Kokoulina. Shostakovich's paternal grandfather, originally surnamed Szostakowicz, was of Polish Roman Catholic descent (his family roots trace to the region of the town of Vileyka in today's Belarus), but his immediate forebears came from Siberia. A Polish revolutionary in the January Uprising of 1863–4, Bolesław Szostakowicz would be exiled to Narym (near Tomsk) in 1866 in the crackdown that followed Dmitri Karakozov's assassination attempt on Tsar Alexander II. When his term of exile ended, Szostakowicz decided to remain in Siberia. He eventually became a successful banker in Irkutsk and raised a large family. His son, Dmitri Boleslavovich Shostakovich, the composer's father, was born in exile in Narim in 1875 and studied physics and mathematics in Saint Petersburg University, graduating in 1899. He then went to work as an engineer under Dmitri Mendeleev at the Bureau of Weights and Measures in Saint Petersburg. In 1903 he married another Siberian transplant to the capital, Sofiya Vasilievna Kokoulina, one of six children born to a Russian Siberian native.
Their son, Dmitri Dmitriyevich Shostakovich, displayed significant musical talent after he began piano lessons with his mother at the age of nine. On several occasions he displayed a remarkable ability to remember what his mother had played at the previous lesson, and would get "caught in the act" of playing the previous lesson's music while pretending to read different music placed in front of him. In 1918 he wrote a funeral march in memory of two leaders of the Kadet party, murdered by Bolshevik sailors.