In
geology, rock (or stone) is any naturally occurring solid mass or aggregate of
minerals or
mineraloid
A mineraloid is a naturally occurring mineral-like substance that does not demonstrate crystallinity. Mineraloids possess chemical compositions that vary beyond the generally accepted ranges for specific minerals. For example, obsidian is an amor ...
matter. It is categorized by the minerals included, its
chemical composition
A chemical composition specifies the identity, arrangement, and ratio of the elements making up a compound.
Chemical formulas can be used to describe the relative amounts of elements present in a compound. For example, the chemical formula for ...
, and the way in which it is formed. Rocks form the Earth's outer solid layer, the
crust, and most of its interior, except for the liquid
outer core and pockets of
magma in the
asthenosphere
The asthenosphere () is the mechanically weak and ductile region of the upper mantle of Earth. It lies below the lithosphere, at a depth between ~ below the surface, and extends as deep as . However, the lower boundary of the asthenosphere is not ...
. The study of rocks involves multiple subdisciplines of geology, including
petrology
Petrology () is the branch of geology that studies rocks and the conditions under which they form. Petrology has three subdivisions: igneous, metamorphic, and sedimentary petrology. Igneous and metamorphic petrology are commonly taught together ...
and
mineralogy
Mineralogy is a subject of geology specializing in the scientific study of the chemistry, crystal structure, and physical (including optical) properties of minerals and mineralized artifacts. Specific studies within mineralogy include the proces ...
. It may be limited to rocks found on Earth, or it may include
planetary geology
Planetary geology, alternatively known as astrogeology or exogeology, is a planetary science discipline concerned with the geology of the celestial bodies such as the planets and their moons, asteroids, comets, and meteorites. Although the ...
that studies the rocks of other celestial objects.
Rocks are usually grouped into three main groups:
igneous rocks,