There are all sorts of electromagnetic waves. The shorter the wavelength the higher the energy of the waves. The energy from the sun is mostly visible.