In 1899, at age 40, Kenneth Grahame married Elspeth Thomson, the daughter of Robert William Thomson. The next year they had their only child, a boy named Alastair (nicknamed "Mouse"). He was born premature, blind in one eye, and plagued by health problems throughout his life.[3] When Alastair was about four years old, Grahame would tell him bedtime stories, some of which were about a toad, and on his frequent boating holidays without his family he would write further tales of Toad, Mole, Ratty, and Badger in letters to Alastair.[4]
In 1908, Grahame took early retirement from his position as secretary of the Bank of England. He moved with his wife and son to an old farmhouse in Blewbury, Berkshire. There, he used the bedtime stories he had told Alastair as a basis for the manuscript of The Wind in the Willows.