Dear Student,
The sun is the ultimate source of almost all kinds of energy on earth by following reasons :
(1) Fossil fuels are the transformed forms of plants and animals which once lived on the earth and capturing the energy of the sun.
(2) Biomass is a product of photosynthesis where the sun has the major role.
(3) Hydro-electricity depends upon the water cycle which again is dependent on solar radiation.
(4) Wind energy, tidal power, wave power all depend on the sun.
The major exceptions are deep sea communities which depend on heat form.