Physics! Thanks!?

Which areas of physics deal with the following?
a. what lightning is?
b. how energy is produced by the sun?

for example how fast things move deals with mechanics and which sunglassess help cut glare would deal with optics. thanks!
Update: the possibilities are

mechanics, thermodynamics, vibrations and wave phenomena, optics, electromagnetism, relativy and quantum mechanics
2 answers 2