Sun block should be used to protect your skin from the damaging effects of the sun.
The UV rays not only trigger hyper pigmentation, but excessive exposure to the sun can lead to skin cancer.
Sun block creams are formulated to absorb or reflect ultraviolet rays.
A sun block is usually labeled with an SPF (sun protection factor) rating. In general, the higher the SPF the more protected you are from UV rays.