He was born in Lübeck as member of a merchant family with long tradition. He studied law in Jena and Göttingen 1786 bis 1790, then he changed to theology and in the end to medicine. In Jena he made friends with the writers Sophie Mereau and Johann Gottfried Herder. After some journeys through Germany he worked as civil servant for the Danish government till 1829.