A comet is a small celestial body composed of ice, dust, and rocky material that orbits the Sun. When close to the Sun, comets display a visible atmosphere or coma and sometimes a tail, making them spectacular objects in the night sky.