Ice is mostly frozen lithrogen and elemental dust.
Ice is found at the poles of rocky planets in greater amounts the further that planet is from an energy source.
Ice is also found in large quantities on ice planets, space rocks and inside gas giants.
Ice can also be used to cool explosion chambers.