Alice's Adventures in Wonderland was published in 1865, during the reign of Queen Victoria, at the height of Britain's industrial and imperial confidence — and Carroll's book is, among other things, a comedy of that confidence. The creatures of Wonderland behave with the absolute certainty of people who know the rules, even when the rules are wrong, even when the rules change moment to moment, even when the rules have just been invented. This is the manner of the Victorian ruling class, delivered in miniature with unblinking accuracy. Alice, who is herself a product of that class — polite, well-educated, conscious of propriety — sees through it because she is young enough to still ask why. The Carroll who wrote the books was Charles Lutwidge Dodgson, a mathematics lecturer at Christ Church, Oxford, who took formal holy orders and was a pioneering photographer. He was also, by all accounts, genuinely interested in children's thinking, treating them as interlocutors rather than subjects of adult management.
The real Alice — Alice Pleasance Liddell — was the daughter of Henry Liddell, Dean of Christ Church. She and her sisters knew Dodgson from childhood. The story was told, then retold, then written down at Alice Liddell's request. Carroll gave her the manuscript, which she later sold at auction. She lived until 1934 and gave interviews in old age about the experience of being the original Alice. She found the attention bewildering. The book had long since escaped her. The Alice of the books is not Alice Liddell; she is something Carroll made from Alice Liddell's curiosity and his own very particular relationship to logic, nonsense, and the rules by which the world pretended to operate.
1852 — Alice Liddell born in Westminster; Dodgson becomes mathematics lecturer at Oxford
1862 — July 4: the boat trip on the Thames during which Carroll first told the story to Alice and her sisters
1863 — Carroll presents Alice Liddell with the handwritten manuscript, Alice's Adventures Under Ground
1865 — Alice's Adventures in Wonderland published by Macmillan; illustrations by John Tenniel
1871 — Through the Looking-Glass, and What Alice Found There published
1934 — Alice Liddell Hargreaves dies, age 82, having spent fifty years as the original Alice
1865 — present — Alice continues to fall down rabbit holes in the imagination of everyone who reads