Perihelion and aphelion are the points in the orbit of a planet or other celestial body where it is closest to and farthest from the Sun, respectively. These points result from the elliptical nature of orbits, as described by Kepler's laws of planetary motion, and affect the speed and distance of the celestial body in its orbit.