Tchaikovsky based The Nutcracker on "The Nutcracker and the Mouse King", a 1816 story by E. T. A. Hoffmann. He encountered it in a French adaptation by Alexandre Dumas (titled Histoire d'un casse-noisette).
The tale's blend of fantasy, childhood wonder, and Christmas magic captivated him. He received a copy as a gift from his niece in 1881 and began composing the ballet in 1891, premiering in December 1892 at the Mariinsky Theatre in St. Petersburg. Though initially met with mixed reviews, it became the most performed ballet in the world.