Rocks are composed of grains of minerals, which are homogeneous soilds formed from a chemical compound arranged in an orderly manner. The aggregate minerals forming the rock are held together by chemical bonds. The types and abundance of minerals in a rock are determined by the manner in which it was formed. Many rocks contain silica (SiO2); a compound of silicon and oxygen that forms 74.3% of the Earth's crust. This material forms crystals with other compounds in the rock. The proportion of silica in rocks and minerals is a major factor in determining their names and properties.
Those three classes are subdivided into many groups. There are, however, no hard-and-fast boundaries between allied rocks. By increase or decrease in the proportions of their minerals, they pass through gradations from one to the other; the distinctive structures of one kind of rock may thus be traced gradually merging into those of another. Hence the definitions adopted in rock names simply correspond to selected points in a continuously graduated series
The three main types :-
Sedimentary :-
Sedimentary rocks are formed from particles of sand, shells, pebbles, and other fragments of material. Together, all these particles are called sediment. Gradually, the sediment accumulates in layers and over a long period of time hardens into rock. Generally, sedimentary rock is fairly soft and may break apart or crumble easily. You can often see sand, pebbles, or stones in the rock, and it is usually the only type that contains fossils.
Examples of this rock type include conglomerate and limestone.
Metamorphic :-
Metamorphic rocks are formed under the surface of the earth from the metamorphosis (change) that occurs due to intense heat and pressure (squeezing). The rocks that result from these processes often have ribbonlike layers and may have shiny crystals, formed by minerals growing slowly over time, on their surface.
Examples of this rock type include gneiss and marble.
Igneous :-
Igneous rocks are formed when magma (molten rock deep within the earth) cools and hardens. Sometimes the magma cools inside the earth, and other times it erupts onto the surface from volcanoes (in this case, it is called lava). When lava cools very quickly, no crystals form and the rock looks shiny and glasslike. Sometimes gas bubbles are trapped in the rock during the cooling process, leaving tiny holes and spaces in the rock.