They gravitationally interact, and we get these sort of eccentric, elongated orbits and also these sort of closed-in, or what are often called hot Jupiters, which, interestingly, are exacting the sort of thing we see in many cases amongst the exoplanets that have been discovered.
NPR: What Makes Our Solar System Special?