Alice Through the Looking Glass was a fantasy book written by the 19th century Human writer Lewis Carroll. The sequel to Alice's Adventures in Wonderland, the book tells the story of a girl named Alice who travels through a mirror into a fantasy world populated by various fantastic characters including the Queen of Hearts. It was considered light reading.
In reality, the Queen of Hearts hearts appeared in Alice's Adventures in Wonderland, not its sequel.
Amanda Grayson was particularly fond of Lewis Carroll's work, leading to her son Spock's familiarity with the book as well.
James T. Kirk also read the book as a youth and, upon recalling that later on in life, was surprised to learn that Spock, too, was familiar with fantasy literature. (TAS: "Once Upon a Planet")
In 2268, under the control of the Platonians' psychokinetic abilities, Kirk and Spock sang a nonsense verse that referenced language and characters from the book:
- I'm Tweedledee, he's Tweedledum.
- We're spacemen marching to and from.
- We slythe among the mimsy troves,
- And tire among the borogroves. (TOS: "Plato's Stepchildren")
By the 24th century, the novel was known to at least some extent on Bajor, since Kira Nerys used it as a metaphor for the mirror universe upon returning from there in 2370. (DS9: "Crossover") In 2371, Smiley O'Brien used a similar metaphor to describe the journey to the mirror universe to Benjamin Sisko, suggesting that Carroll's novel existed in that universe as well, and that knowledge of it somehow survived the fall of the Terran Empire. (DS9: "Through the Looking Glass")
The pre-existing character Humpty Dumpty was also featured in the book, but while he has been referenced several times, he has not been explicitly linked to the book.