The processes by which rocks and fossils are altered (chemically and/or physically) during and after burial but before exposure and weathering. Diagenetic effects stop short of metamorphism, however, which occurs at greater temperatures and pressures than diagenesis. Chemical alteration can lead to rocks and fossils recording diagenetic rather than palaeoenvironmental conditions.