Here's how it works:
* Magma: When magma cools and crystallizes slowly deep underground, it forms intrusive igneous rocks like granite and gabbro.
* Lava: When lava erupts onto the Earth's surface and cools quickly, it forms extrusive igneous rocks like basalt and rhyolite.
Weather, on the other hand, is the state of the atmosphere at a particular time and place, including temperature, humidity, precipitation, wind, and cloud cover. While weather can erode and break down igneous rocks over long periods, it doesn't play a role in their initial formation.