Final answer:
Magma rises to the surface of the Earth because it is less dense than the surrounding rocks and because of the pressure exerted by the surrounding rock.
Step-by-step explanation:
Magma rises from depth to the surface of the Earth primarily because it is less dense than the rocks that surround it and because of the pressure exerted by the surrounding rock.
The density of magma is lower than the density of the surrounding rocks, allowing it to rise due to buoyancy. Additionally, the pressure created by the surrounding rock can push the magma upward.