According to Kepler's Third Law, the semi-major axis of a planet's orbit is related to its orbital period. The larger the semi-major axis, the longer the orbital period.
Therefore, the planet with the largest semi-major axis is the planet with the longest orbital period.
In our solar system, that would be Neptune. It takes Neptune approximately 165 Earth years to complete one orbit around the Sun.