Magma oceans are integral parts of planetary formation as they facilitate formation of a core through metal segregation[5] and an atmosphere and hydrosphere through degassing.[6] Magma oceans may survive for millions to tens of millions of years, interspersed by relatively clement conditions.