Igneous rocks consist of aluminosilicates of calcium, potassium, sodium etc. Rainwater containing some dissolved CO2 dissolves these metals as bicarbonates. These go into the sea leaving behind clay and sand (called detritus clay)

Ca2+get converted to CaCO3 (shells) by marine organisms, which forms sedimentary rocks. HCO3- (bicarbonate ion) reacts with HCl (produced due to volcanic eruptions under sea water) producing Cl- and CO2.
This reaction is followed by metamorphoric of clay to form Na, K, Ca aluminosilicates of igneous rocks.

Manganese nodules
Manganese metal exists at the seabed, in the form of potato shaped nodules. These nodules are formed by some on-going biological processes. These nodules also contain small amounts of metals like, cobalt, copper, nickel, iron etc. An approximate composition of manganese nodule is

