Pigmentation is the skin's response to extra melanin — triggered by UV exposure, inflammation, or hormones — sitting either near the surface or deeper in the dermis depending on the cause. Sun spots and freckles tend to be more straightforward; the depth and pattern of the pigmentation guide which treatment suits it.
Melasma is a different story. It's driven from the inside by hormonal factors, shows as symmetrical patches across the cheeks, forehead or upper lip, and can flare with heat, sun or hormonal change. Because it's more reactive, aggressive laser can actually make it worse — so melasma is approached far more cautiously than a straightforward sun spot.
The honest part: telling these apart, and choosing a pathway that fades rather than provokes them, is what the consultation is for. Treatment reduces the appearance of pigmentation gradually — it doesn't switch off overnight, and ongoing sun protection is what keeps the improvement in place.