The lithification of a sandy environment