The suns role in the water cycle is to heat the water enough so that it evaporates. This allows the water to rise up into the sky where it is then cooled and condensed into clouds, once the clouds are too dense it rains and the cycle begins again with the sun heating the water. The sun allows the cycle to continue infinitely