You know what Darth Vader sounds like before he says a word. The slow march in the brass, the doom on a loop, the sound of something large and very bad walking toward you. John Williams wrote it, and it does one specific job: every time you hear it, you know exactly who is about to ruin everyone's day.

The Imperial March (Darth Vader's Theme)

That march is not background. It is a name tag. Composers have a word for a tune that works like a name tag: a leitmotif, a short theme glued to a character so the music can tell you who is in the room before the camera does. Williams is a master of it. He didn't invent it. The trick is about a hundred and fifty years old, and the man most associated with it would have hated being thanked.

Vader's theme reached the public three weeks before the film

The march is so welded to the original Star Wars that almost everyone misremembers where it came from. It isn't in the 1977 film at all. It turns up in the sequel, "The Empire Strikes Back," in 1980, and it got to audiences before the film did. Williams conducted it at a Boston Pops concert on 29 April 1980, three weeks ahead of the premiere.

In the film itself it doesn't crash straight in. You hear it first low and quiet in the piccolos, a small dark thing creeping along under the scene. About nineteen minutes in, as Vader is presented in full, it bursts out at full strength. The creep and the explosion are the same tune. A leitmotif can whisper or it can roar, and either way you know whose name it's spelling.

The deeper trick is that it can also return broken. In "Return of the Jedi," in 1983, the march comes back one last time, at Vader's death, as Anakin turns back to the light. Williams strips it of the militarism and the menace and brings it back slowed and softened, hollowed out, fading down to a final, near-silent statement on solo harp. The once-unstoppable march is reduced to a fragile shadow of itself, and that fragility is the whole point: it's the same theme, carrying everything that has happened to the man since it first marched in. The tune doesn't just announce him. It grows up with him, and it dies with him.

The Imperial March, transformed — Vader's death in Return of the Jedi

Richard Wagner built the engine and couldn't stand the word

Trace the trick back far enough and you arrive at Richard Wagner. His four-opera monster, "Der Ring des Nibelungen," composed between 1853 and 1869, runs on dozens of these short recurring themes, each one named. There's a grand march for Valhalla, the fortress of the gods. There's a rising fanfare for the magic sword Nothung, which you hear when the sword is forged, again when it's drawn, and again when it shatters. There's a theme for the Ring itself, and a theme for the Curse that Alberich lays on it. Wagner wove them so densely that the orchestra became a second narrator, telling you what a character is really thinking while they sing something else entirely.

And he did the broken-return trick decades before Williams. Once the curse is on the Ring, its theme comes back darker and heavier, with the Curse motif shadowing it underneath, a tune carrying everything that has happened to it. That is exactly what Williams does to the Imperial March at Vader's death. Same idea, same engine, a century apart.

Modern film scoring is built directly on that. The hero theme, the villain theme, the danger sting that tightens your stomach before anything has happened on screen. Williams scoring Vader is Wagner's grandchild, several generations down.

Wagner is the patron saint of the leitmotif, and Wagner could not stand the word. He never coined it. The term turns up in print in 1871, from a critic named Friedrich Wilhelm Jähns, who was writing about Carl Maria von Weber, not Wagner at all. Wagner preferred his own labels, Grundthema and Hauptmotiv, and once batted the fashionable term away as "so-called Leitmotivs." His wife Cosima caught him grumbling:

"People will think all this nonsense is done at my request."

The technique that built John Williams was named over its inventor's objections, after the wrong composer.

Essential Wagner — Essential Classics

Go hear the source code

Once you know the name tag is there, you can't unsee it. Watch any film now and the music keeps telling on the characters: this one is good, that one is lying, something is about to go wrong in the next ninety seconds. All of it traces back to the engine Wagner built in those four operas.

The Wagner collection above opens on the overture to "Der fliegende Holländer," The Flying Dutchman, an early Wagner opera that premiered in 1843. The story is a sea captain cursed to sail forever, allowed ashore only once every seven years, freed from the curse only if he finds a woman who will stay faithful to him. The overture is storm and ocean, and it does the whole trick in miniature: it lays out the opera's leitmotifs in order, the storm and ocean first, then the Dutchman's own theme, then Senta's redemption theme. Listen for the moment one of them returns, changed, carrying everything that happened to it since the last time you heard it. That return is the trick. It's what the brass is doing every time Vader walks in, except Wagner was doing it to grown adults in an opera house a century before George Lucas imagined a Death Star. This is Wagner at his stormiest and darkest, about as close as this collection gets to the dread in Vader's march.

The next time a film score tells you the villain is coming before the villain arrives, you'll know what you're hearing. It's a name tag, written in music, and a German composer who hated the word for it got there first.