Click here for more on basalt and granite. In most places on the surface, the igneous rocks which make up the majority of the crust are covered by a thin veneer of loose sediment, and the rock which is made as layers of this debris get compacted and cemented together. Sedimentary rocks are called secondary, because they are often the result of the accumulation of small pieces broken off of pre-existing rocks. Thick deposits of salt and gypsum can form due to repeated flooding and evaporation over long periods of time . Many animals use calcium for shells, bones, and teeth.
Any rock can become a metamorphic rock.
All that is required is for the rock to be moved into an environment in which the minerals which make up the rock become unstable and out of equilibrium with the new environmental conditions. In most cases, this involves burial which leads to a rise in temperature and pressure. The metamorphic changes in the minerals always move in a direction designed to restore equilibrium. Common metamorphic rocks include slate, schist, gneiss, and marble.