As long as the sun keeps shining (which we assume is for a long time), there’s going to be no dearth of solar energy.
Despite being one of the oldest sources of renewable energy, the sun was only considered a viable source in the 1950s. However, ever since the significance of solar came to the forefront, the research and commercial usage has only grown stronger.