Jupiter as the largest planet exerted a gravitational pull on many of these celestial bodies once it was formed and these planetesimals were pulled into a stable orbit around Jupiter forming what is now called as the asteroid belt.