The moon reflects sunlight and even reflected sunlight can interact with droplets of water in the atmosphere such as thin clouds like a layer of fog. You see the light as a ring because that is the angle of reflection (or refraction) of light from the moon through the moisture's spherical drops to your eyes. The moon can even produce moonbows, similar to rainbows (but no pot of gold?).