In astronomy, Uranus and Neptune are classified as ice giants because they are composed mostly of elements heavier than hydrogen and helium, such as oxygen, carbon, nitrogen, and sulfur. Jupiter and Saturn are gas giants, and Pluto is a dwarf planet.