The source of energy of the sun or stars is the nuclear fusion of light nuclei such as hydrogen present in their inner part at a very high temperature and a high pressure. This results the formation of helium nucleus with a release of tremendous amount of energy.