A claystone and a limestone containing immature Type II-S kerogen were thermally matured in the presence and absence of water, to study the influence of water and clay minerals on the generation of biomarkers. In contrast to hydrous pyrolysis, anhydrous pyrolysis of the claystone did not generate biomarkers, which resulted in the loss of important information. Desulfurization of the polar fraction of the claystone showed that anhydrous pyrolysis is not capable of converting S-bound biomarkers to free biomarkers. For the limestone, the differences between hydrous and anhydrous pyrolysis are less dramatic. Adsorption of the polar fraction of the claystone to smectite interlayers probably leads to cross-linking reactions, preventing the generation of free biomarkers. During hydrous pyrolysis, the smectite interlayers are occupied by water so that generation of biomarkers can take place. In addition, cross-linking reactions during anhydrous pyrolysis of the claystone may be enhanced because of the presence of S-S bonds in the organic matter of the claystone. These results show that water is important in closed system laboratory experiments designed to simulate natural maturation of sedimentary organic matter.A claystone and a limestone containing immature Type II-S kerogen were thermally matured in the presence and absence of water, to study the influence of water and clay minerals on the generation of biomarkers. In contrast to hydrous pyrolysis, anhydrous pyrolysis of the claystone did not generate biomarkers, which resulted in the loss of important information. Desulfurization of the polar fraction of the claystone showed that anhydrous pyrolysis is not capable of converting S-bound biomarkers to free biomarkers. For the limestone, the differences between hydrous and anhydrous pyrolysis are less dramatic. Adsorption of the polar fraction of the claystone to smectite interlayers probably leads to cross-linking reactions, preventing the generation of free biomarkers. During hydrous pyrolysis, the smectite interlayers are occupied by water so that generation of biomarkers can take place. In addition, crosslinking reactions during anhydrous pyrolysis of the claystone may be enhanced because of the presence of S-S bonds in the organic matter of the claystone. These results show that water is important in closed system laboratory experiments designed to simulate natural maturation of sedimentary organic matter.