Answer
Comets are icy objects that originate in the outer regions of the Solar System. They're composed mostly of water ice, along with frozen gases such as carbon monoxide, methane, and ammonia. When a comet approaches the Sun, its surface heats up and releases these gases, which form a tail that can stretch millions of kilometers. Comets are typically several kilometers in diameter, but some can be much larger.