Like nuclear energy, solar energy does not put CO2 into the atmosphere, and so needs to be considered if global warming has to be avoided. It has lots of supporters among those who oppose nuclear energy. There are many schemes for generating electricity from the sun. These include Photovoltaic cells. These are an attractive field of research, and have gradually been made more efficient and less costly.
Mirrors focus sunlight on a boiler, which generates steam and then electricity.
This competes with other uses of agricultural land and requires more labor than present energy generation methods. My opinion is that except for special applications, solar energy is a resource and not a reserve, to use economic jargon. This means that our civilization would survive if we were dependent on solar energy, e.g. could not use nuclear energy. However, solar energy would be expensive enough to put nations that decided to depend on it alone at a serious economic disadvantage compared to nations that were not constrained to rely on it. Their citizens would be poorer.