The Sun formed about 4.6 billion years ago in a giant, spinning cloud of gas and dust called the solar nebula. As the nebula collapsed under its own gravity, it spun faster and flattened into a disk.
<h2>in space billons of year ago dust particles together to create solar nebula also the sun made with helium and hydrogen the sun will run out of energy</h2>