The sun was born when a dense gas cloud collapsed, 4.6 billion years ago
Our solar system today is mainly composed of a central star — the sun — along with an inner solar system with rocky planets, and an outer solar system with gas and ice giant planets. However, it hasn’t always been that way.