Answer:
The sun produces most of the energy by the process of Fusion. Sun is the main sequence star and it generates the energy by the process of nuclear fusion.
It generates energy from the fusion of hydrogen nucleic into helium.The fusion inside the sun takes place in its core.
The fusion in stars releases high amount of heat and light.