The Solar System[a] comprises the Sun and the objects that orbit it, whether they orbit it directly or by orbiting other objects that orbit it directly.
The Solar System formed 4.6 billion years ago from the gravitational collapse of a giant molecular cloud