The intense pressure and temperature at the core of a starallow nuclear fusion reactions to take place. This is where atoms of hydrogen are fused into atoms of helium (through several stages). This reaction releases an enormous amount of energy in the form of gamma rays
Hope this helps have a nice day