Igneous rocks form from the cooling of magma. Magma is molten rock found beneath the Earth's surface. When magma cools, it solidifies to form igneous rocks. This process can happen either beneath the surface, resulting in intrusive igneous rocks, or on the surface, resulting in extrusive igneous rocks. To answer your question and get the correct answer, you would choose the last option: "from the cooling of magma".