Descended from a prominent Puritan family, Hawthorne was the son of a sea captain who died when Nathaniel was 4 years old. When he was 14 he and his mother moved to a lonely farm in Maine. After attending Bowdoin College (1821–25), he devoted himself to writing. His first novel, Fanshawe (1829), published anonymously, was unsuccessful. His short stories won notice and were collected in Twice-Told Tales (1837; second series, 1842). Unable to support himself by writing and editing, he took a job at the Boston customhouse.
Later, Hawthorne lived at the experimental community Brook Farm for about six months, but he did not share the optimism and idealism of the transcendentalist participants (see transcendentalism), and he did not feel himself suited to communal life. In 1842 he married Sophia Peabody, a friend and follower of Emerson, Thoreau, and Margaret Fuller, and they settled in Concord. There he wrote the tales and sketches in the collection Mosses from an Old Manse (1846).