A peridotite is a dense, coarse-grained igneous rock
Igneous rock
Igneous rock is one of the three main rock types, the others being sedimentary and metamorphic rock. Igneous rock is formed through the cooling and solidification of magma or lava...

, consisting mostly of the minerals olivine
The mineral olivine is a magnesium iron silicate with the formula 2SiO4. It is a common mineral in the Earth's subsurface but weathers quickly on the surface....

 and pyroxene
The pyroxenes are a group of important rock-forming inosilicate minerals found in many igneous and metamorphic rocks. They share a common structure consisting of single chains of silica tetrahedra and they crystallize in the monoclinic and orthorhombic systems...

. Peridotite is ultramafic, as the rock contains less than 45% silica. It is high in magnesium
Magnesium is a chemical element with the symbol Mg, atomic number 12, and common oxidation number +2. It is an alkaline earth metal and the eighth most abundant element in the Earth's crust and ninth in the known universe as a whole...

, reflecting the high proportions of magnesium-rich olivine, with appreciable iron
Iron is a chemical element with the symbol Fe and atomic number 26. It is a metal in the first transition series. It is the most common element forming the planet Earth as a whole, forming much of Earth's outer and inner core. It is the fourth most common element in the Earth's crust...

. Peridotite is derived from the Earth's mantle, either as solid blocks and fragments, or as crystals accumulated from magmas that formed in the mantle.