Lava is molten or partially molten rock that has been expelled from the interior of a terrestrial planet or a moon onto its surface.