The upper Dwyka and lower Ecca Groups in the Karoo Basin of South Africa document the climatic and palaeoenvironmental changes associated with the final Permo-Carboniferous deglaciation of the Gondwana supercontinent. The depositional environments of these groups have, until recently, been interpreted on the basis of sedimentological and palaeontological evidence. Here we use the geochemistry of early diagenetic concretions -septarian calcite concretions from the upper Dwyka Group and phosphatic chert concretions and beds from the lower Ecca Group -to infer the depositional environment of these rocks in the southwestern Karoo Basin. δ 18 O values (7.8 to 8.9‰ SMOW) suggest that the calcite concretions precipitated from a mixture of meteoric and glacial melt waters rather than Permian seawater. δ 13 C values (−15 to − 3‰ PDB) indicate that the carbon was derived from a mixture of craton-derived calcareous material and organic matter, bacterially degraded in the lower sulphatereduction to upper methanogenesis zones during early burial diagenesis. The rare-earth element (REE) patterns, Sr concentrations and 87 Sr/ 86 Sr ratios (0.716-0.737) significantly greater than Permian seawater (0.708), together also support the interpretation that calcite and phosphatic concretions formed in glacial, fresh water sediments.