For two years Thoreau lived by the shore of Walden Pond by C. working the land by himself.
It was a kind of experiments for him, a simple life at Walden Pond. He used this experience to write about and describe its philosophy of life, politics, and nature. This inspired his work "Walden"