# data[].attributes.body
Magma is molten rock located beneath the Earth's surface. It forms in the mantle due to high temperatures and pressures causing rocks to melt

# data[].attributes.body
It forms when magma or lava solidifies by cooling. The type of igneous rocks depends on the composition and the cooling rate. Magma is cooled underneath the earth while lava is cooled near or at the surface, thus resulting in intrusive and extrusive igneous rocks.

# data[].attributes.body
are formed through weathering and erosion. Weathering breaks down igneous rocks into smaller pieces, which are then transported by erosion. These pieces are deposited in layers, which become compacted and cemented to form sedimentary rocks.

# data[].attributes.body
Metamorphism occurs when rocks are subjected to intense heat and pressure deep within the Earth's crust. This process causes the minerals in the rocks to crystallize and rearrange, forming new rock types with different properties. All types of rocks can form into metamorphic rocks.

# data[].attributes.body
The rock cycle is a continuous process where rocks change from one type to another. The types of rocks are igneous rocks, sedimentary rocks, and metamorphic rocks. Understanding the rock cycle helps us understand the Earth's history, identify natural resources, assess geological hazards, and develop sustainable practices.