Carbon enters the ocean mainly through the dissolution of atmospheric carbon dioxide, a small fraction of which is converted into carbonate. It can also enter the ocean through rivers as dissolved organic carbon. It is converted by organisms into organic carbon through photosynthesis and can either be exchanged throughout the food chain or precipitated into the oceans' deeper, more carbon-rich layers as dead soft tissue or in shells as calcium carbonate. It circulates in this layer for long periods of time before either being deposited as sediment or, eventually, returned to the surface waters through thermohaline circulation. Oceans are basic (~pH 8.2), hence acidification shifts the pH of the ocean towards neutral.