Answer;
Fusion reactions
Fusion reactions in the sun provide the energy for production of electromagnetic waves in the sun.
Explanation;
Electromagnetic radiations are continuous spectrum of wavelengths from thousands of kilometers to wavelengths the size of fractions of an atom.
Nuclear fusion is a nuclear reactions in which hydrogen nuclei fuse together to form helium nuclei and release energy. This energy harnesses the production of electromagnetic radiations.