“One morning I shot an elephant in my pajamas. How he got in my pajamas, I don't know.”

Capt. Geoffrey T. Spaulding · Groucho Marx · Victor Heerman

Surface meaning

Capt. Geoffrey T. Spaulding claims that he shot an elephant while wearing pajamas, then admits that he has no idea how the elephant got into them. The literal wording creates a comic confusion between the pajamas belonging to the hunter and the elephant wearing them.

Cinematic context

In Animal Crackers, Spaulding is entertaining guests at Mrs. Rittenhouse’s party with stories of his travels and exploits in Africa. The line arrives as one of his deliberately extravagant hunting anecdotes, delivered as though the absurd detail were perfectly ordinary. Groucho Marx plays Spaulding as a boastful adventurer whose confidence makes even obvious nonsense sound like a reasonable report.

Deeper meaning

The joke depends on a grammatical trap. The opening phrase seems to say that Spaulding was wearing pajamas when he shot the elephant, but the next sentence briefly shifts the image toward an elephant dressed in them. Nothing needs to be explained because the confusion is created by the sentence itself.

That confusion also fits Spaulding’s character. He treats language as another form of showmanship, using a straight-faced account to make a ridiculous image seem credible. The humor comes less from the hunting story than from watching a speaker maintain authority while the words quietly destroy it.

Pop-culture legacy

The line is ranked 53rd on the American Film Institute’s list of the 100 greatest movie quotes. It is often cited as a classic example of a misplaced modifier, and its structure has been adapted whenever a joke needs an ordinary sentence to produce a wildly wrong mental picture. Its survival comes from being both a Groucho Marx joke and a compact lesson in how grammar can misdirect a listener.

Delivery

Marx gives the setup the brisk confidence of a practiced raconteur, then lets the second sentence expose the verbal mistake without changing the basic seriousness of his tone. That restraint keeps the joke from becoming a performance about being funny. Spaulding sounds as though the audience, not the story, is responsible for any confusion.

Why it works

The line is built from a clean reversal. The first sentence establishes a familiar image, while the follow-up forces the listener to reconsider who is wearing the pajamas. The repetition of the ordinary word gives the joke its snap, and the final admission makes Spaulding’s certainty collapse into bafflement without requiring any extra explanation.