Sun, in moderation, is good for our health but over-exposure to the sun’s rays can cause both short- and long-term skin damage. You can read about how the sun affects skin, both on the surface and at a cellular level, in How do UVA, UVB and HEVIS light rays affect skin?
Young skin is particularly sensitive to sunlight. This is because it is still developing: