Another way to say "sunglasses hide the eyes from the sun" is "The sun's harsh rays can be prevented and hidden  by a person wearing sunglasses."