Comets sparkle because they leave a trail of glowing dust and gas behind them as they fly close to the Sun. When the Sun shines on this trail, it lights up like stars in the sky. It’s like when you run through a foggy forest and your footprints glow from the light shining through the mist.