Tropical peatlands are one of the most efficient carbon sinks. The flipside is that they can become massive emitters of carbon if they are damaged, for instance by land use change, degradation or fire. This can lead to faster climate warming. Researchers now show how peatland in the coastal areas in Sumatra and Borneo in Indonesia developed over thousands of years and how climate and sea level influenced their dynamics throughout.