There are eight planets in the solar system. The four inner terrestrial planets are Mercury, Venus, Earth, and Mars, all of which consist mainly of rock. The four outer planets are Jupiter, Saturn, Neptune, and Uranus, giant planets that consist mainly of either gases or ice. Pluto was considered the ninth planet until 2006, when the International Astronomical Union voted to classify Pluto as a dwarf planet instead.