Throughout Alice's Adventures in Wonderland and Through the Looking-Glass, it is only possible to understand the strangeness and curiousness of the fantasy world by comparing it to the "real world" – in this case, Victorian England. Fantasyland serves as a contrast to "real life," helping us better understand our own reality.
Wonderland is not a direct allegory for the real world, but it does contain some episodes of allegory that add a satirical flavor to the text.
There is nothing in Wonderland that is purely fantastic; each character or event in the fantasy world is based on something that happens or someone who exists in the real world.