This was sort of a mix between Lewis Carroll's Alice in Wonderland and Through the Looking Glass, although some of the events in the movie did not occur in either of the books. However, I think that Disney did a good job of staying true to the idea of Alice being in an impossible place with impossible characters in impossible situations, and it made for a great movie.