When comets get closer to the Sun, they lose material with each orbit because some of their ice melts and vaporizes. Asteroids typically remain solid, even when near the Sun. Asteroids are mostly rock and rock pieces, comets are composed of ice, gases, and dust.