Comets are small, oddly shaped bodies of ice, frozen gases and dust left over from the formation of the solar system. A space probe that visited Halley’s Comet found that it was a dirty snowball covered with a skin of tar.
Periodic comets orbit the Sun in highly elliptical orbits, shooting towards the Sun and then back out into deep space leaving the inner solar system of Mars, Earth, Venus and Mercury, far behind.