About 4.5 billion years ago, although some scientists claim closer to 4.7 billion years ago. Given how little we really know about cosmology and physics, it's difficult to be sure. Since the universe is about 14.5 billion years old, that indicates that the Sun and our solar system formed when the universe itself was about 10 billion years old, which was time for many generations of stars to form, burn themselves out, and explode.
This makes sense, because the planets are made of heavier elements that did not exist until they were created in the fires of supernova explosions.
Gravity.
They are Formed by xagons that come from moon.
Good sir, I am a bit confused as to the nature of your question. Do you mean... "When was the sun formed?" or "What does the sun form?" (which is just illogical) The answer to both is simple Your mother.
The sun formed first. The moon was not formed until around after the formation of proto-Earth.
The dust that remained after the sun formed coalesced to form planets, asteroids, and comets.
It was formed by a kind of hot gas, and they condenses and became a star, that's the sun.
Fossil fuels are formed on Earth, not on Sun.
because they are
all the dust particles mixed and the sun was formed
A planet is formed out of hot gases revolving around the Sun.
No, it was formed as part of the collapse of the Nebular which formed the Sun.
The sun formed from a large cloud of gas and dust in space about 4.6 billion years ago. As gravity caused the cloud to collapse, it heated up and formed the sun at the center, while the remaining material in the cloud eventually formed the planets in the solar system.