Before the piano, the dominant keyboard instruments in Western music were the harpsichord, which produces sound by plucking strings with quills, and the clavichord, which strikes strings with small metal blades. Both instruments had significant expressive limitations: the harpsichord's plucking mechanism meant that, regardless of how hard or soft a player pressed a key, the resulting volume remained essentially constant, making it impossible to create the kind of gradual dynamic swells, sudden accents, or expressive volume contrast composers and performers increasingly wanted as musical styles evolved through the late Baroque period.
Bartolomeo Cristofori, an Italian instrument maker working for the Medici court in Florence, developed a fundamentally different mechanism around 1700: rather than plucking strings, his invention used small hammers to strike them, with a mechanism allowing the hammer's striking force — and therefore the resulting volume — to vary directly based on how hard the player pressed the key. Cristofori called his invention 'gravicembalo col piano e forte' (harpsichord with soft and loud), eventually shortened to just 'piano' or 'pianoforte' — a name directly describing its key innovation: genuine dynamic control. The instrument spread gradually through the eighteenth century, gaining significant momentum once composers including Mozart began writing music that specifically exploited its dynamic capabilities, and by the early nineteenth century, following further technical refinements by numerous instrument makers across Europe, the piano had substantially displaced the harpsichord as the dominant Western keyboard instrument, becoming central to Romantic-era composition (Beethoven, Chopin, Liszt, and many others wrote extensively and specifically for the instrument's expanded expressive range) and eventually to an enormous range of popular and folk music traditions worldwide.