Comets are astronomical objects composed of ice, dust, and rocky material that orbit the Sun. When they approach the Sun, they develop spectacular tails of gas and dust that can extend millions of kilometers. The tail always points away from the Sun due to solar wind and radiation pressure.