the elements were created in super and hypernovas and the planet ultimately was built from said elements through gravitation.
details like life and conditions, including climate are subject to many many details like the moon as a stabilizer, jupiter as a gate-keeper, distance and kind of the sun itself etc. etc.
so even the sun is not a god but only the largest object built from the same nebula ultimately created through the death of ancient stars, mostly much larger and short-lived as compared to our relatively small g-class sun, g like good/gut, easy to remember.
since such astrophysical things are very well documented and researched one should better read up things a bit before babbling away.
who is the biggest man-made killing factor on planet earth?
it are religious wars, conflicts and rituals and that for thousands of years back, hence to make anything and anyone god or godlike is, in case of success, the root to a new wave of killings.
mostly religious leaders simply are/were scamsters who exploited the stupid masses and/or executed power over them in the name of god.
in short, the sun is not a god and it's not wise to take that path only to sound like being a good person. the real good people are those who tell the truth, stick to the truth and do their best to
live what they preach/believe.
all other are hypocrites, pharisees, seeking benefits and reputation and they are all the same bad, no matter in which field they play their games.