How do igneous rocks form?

From the cement of sediments
From the modification of existing rock
From the cooling of magma
From the evaporation of water

Igneous rocks form from the cooling of magma. When magma, which is molten rock, cools and solidifies, it forms igneous rocks. This process can occur deep within the Earth's crust or on the surface after a volcanic eruption. The cooling rate and composition of the magma determine the type of igneous rock that forms.