John Lennon wrote the 1967 song in response to a letter from a schoolchild at his former grammar school describing how his English teacher made the class analyse Beatles lyrics. Lennon deliberately made the lyrics as nonsensical as possible. The walrus is a reference to Lewis Carroll's poem The Walrus and the Carpenter, from his book Through the Looking Glass.