Question: how are outer planets formed?
Answer: It all started with a cloud of dust and gas that had a small rotation, when the cloud collapsed mainly because of some gravity event of a nearby dying star the objects in it and the disk itself began to move faster and the Sun came into existence.