The Earth is made up of concentric layers, like an onion. The outermost layer is the crust, which is thinnest and varies in thickness between continental and oceanic crust. Below the crust is the mantle, which extends almost 3,000 km deep. The innermost layer is the core, with a liquid outer core and solid inner core composed mainly of nickel and iron. Rocks make up the crust and can be categorized as igneous, sedimentary, or metamorphic depending on how they were formed from molten magma or through other geological processes.