Why is the Sun So Hot?

The reason the sun is so hot is because of nanoflares. They are small spontaneous burst of energy and heat. Whatever the case may be as to why the Sun is so hot, I know we feel it every Summer!