At the beginning of Alice in Wonderland, Alice becomes small (having swallowed the contents of a bottle labeled "DRINK ME"), enabling her to enter a small door in order to follow the White Rabbit.
At another point in the story, Alice has entered the White Rabbit's house and grown too large to leave (having had a drink from a bottle she finds there). Eating cakes she finds on the floor reduces her size so that she can escape before the White Rabbit can burn his house down with Alice in it.
At the story's conclusion, during the trial of the Jack (Knave) of Hearts, chaos ensues—yet again. (This is a normal occurrence in Wonderland.) Alice begins to grow again, and with her increased size, she becomes more confident, standing up to the Queen of Hearts and the others. When the Queen demands that Alice's head be cut off, Alice tells them she is not frightened of them because she surmises that they are simply playing a hand of cards.
At this point, Alice wakes from her "dream."