 Born into a middle-class family, he studied at the Collège de Genève, then the École Polytechnique in Paris, and the theological faculty in Geneva.In 1819 he travelled to Germany, trying unsuccessfully to live by writing poetry and novels.He then took tutoring work, returning to Geneva in 1823.