The eruption of molten rock from a planet's surface, forming volcanic structures and releasing gases into the atmosphere.