The process by which energy is released in sun is
Nuclear fusion
Nuclear fusion is a reaction in which two atomic nuclei fuse together and releasing a large amount of energy. Nuclear fusion happens only at very high temperatures.
In Sun, hydrogen atoms fuse together to produce energy and helium.