Comets acquire and maintain a dust layer primarily from the primordial materials that formed them, including dust and water ice. Their low gravity makes it challenging for them to hold onto surface materials, especially when near the Sun, where ices vaporize and create a temporary atmosphere that can lose dust particles. The dust layer is largely composed of material that was part of the comet's original structure, which remains after some ices boil away. The thickness of this dust layer can indicate a comet's proximity to the Sun during its orbit, as closer approaches result in more material being lost. Despite their small size, comets can retain some dust due to a combination of gravity and cohesion, although the mechanics of their formation and dust retention continue to raise questions.