Why is solar energy considered renewable?

The raw material required for the solar energy is sunlight which is freely available and sunlight is available as long as the sun exists and at the same time sunlight is inexhaustible. Hence solar energy is considered to be renewable source of energy.