No person actually created the sun although the Sun formed naturally from a cloud of gas and dust that is called nebula.
The Sun formed from the nebula which is a cloud of gas and dust around 4.5 billion years ago.
The process of creating the Sun was driven by nuclear fusion and gravity and led to the formation of the Sun as well as the solar system.
The Sun which formed within a massive cloud of gas and dust called a nebula, likely was triggered by the shockwaves from a supernova that was nearby.
And the gravity of nebula caused it to collapse and spin and flatten it into a disk.
Then as the nebula collapsed, material was then pulled towards the center and formed a protostar, which is a hot dense ball of gas.
Then eventually the temperature as well as the pressure at the core of the protostar reached high enough levels for nuclear fusion to begin which is a process in which hydrogen atoms fuse into helium and releases immense energy and makes the sun shine.
And the leftover material from the nebula, along with the early sun's powerful solar wind, formed the planets and other objects in the solar system.
The real color of the Sun is also white and not yellow.
Although the Sun often appears to be the color yellow or even red when it's viewed from Earth, especially during sunset or sunrise.
The reason why the Sun appears yellow or even red even during sunrise or sunset is a result of the way the light scatters in the atmosphere.
The Sun also emits all colors of the rainbow in approximately equal amounts, which is what our eyes perceive as white.
The Sun, just like all objects with a temperature above absolute zero, emits a range of electromagnetic radiation, including visible light at various wavelengths.
This emission is a form of black body radiation and the peak wavelength of the emitted radiation depends on the objects temperature.
The Sun's surface temperature is around 10,395 F and this temperature corresponds to a peak emission of light in the green part of the spectrum, although the Sun also emits light across the visible spectrum.
And when sunlight travels through Earth's atmosphere, shorter wavelengths of light such as blue and violet are scattered more than longer wavelengths like red and orange.
And this scattering of light is why we see a blue sky during the day as well.
Also during sunset and sunrise, the sunlight travels through a greater amount of atmosphere and this increased scattering causes more of the blue and the green light to be removed, which leaves behind the longer wavelengths of red and orange which make the Sun appear red or orange during these times.
Nuclear fusion and hydrogen atoms fusing and forming helium are the fuels that keep the Sun burning.
The Sun uses nuclear fusion to keep it burning, which primarily involves hydrogen atoms fusing to form helium.
The process of nuclear fusion and hydrogen atoms fusing to form helium releases immense energy and creates the Sun's light and heat and the Sun has enough of the hydrogen fuel to sustain the fusion for billions of years.
What keeps the Sun burning is the thermonuclear fusion that it's fueled by and the fact that it also burns the fuel slowly.
The reason why the Sun hasn't run out of fuel is because the sun is actually still mainly fueled through thermonuclear fusion.
Thermonuclear fusion is a process which converts hydrogen into helium and it's a process that is very efficient.
The immense size and gravity of the Sun also allows the Sun to continue fusing hydrogen at a slow but steady rate.
The Sun has only used around half of it's energy producing hydrogen and the Sun will be able to continue burning for billions of years yet before it eventually becomes a red giant and then eventually a white dwarf.
The core of the Sun is extremely hot and dense, which allows the hydrogen atoms to fuse together at a rate which releases tremendous amounts of energy.
And the fusion process is what creates helium and also releases energy in the form of light and heat.
The energy that is released by converting just one kilogram of hydrogen to helium is the same as burning 20,000 metric tons of coal.
The Suns core also has a power density that is similar to that of a compost heap, but due to it's enormous size it allows for a massive amount of production of energy.
The core of the Sun is in a state of hydrostatic equilibrium, in which the pull of gravity is balanced by the outward pressure from the nuclear fusion process.
The balance is what prevents the Sun from exploding or collapsing.
The Sun is also not burning it's fuel in a rapid or explosive way such as a fire on earth would.
Instead the Sun is burning hydrogen very slowly and steadily and so it releases energy gradually over billions of years.
The core of the Sun is also converting around 600 million tons of hydrogen into helium every second and the remaining 4 million tons are converting into energy.
It's estimated that eventually the Sun will run out of hydrogen in it's core and then the Sun will transition into a red giant stage and expand significantly and cool down.
After this, the Sun will become a dwarf and a dense cool remnant of it's former self.