Aphelion and perihelion refer to the points in the orbit of a celestial body around the Sun where it is farthest and closest, respectively. These points result from the elliptical shape of orbits as described by Kepler's laws of planetary motion, leading to variations in solar energy received by the body throughout its orbit.