Parallax is the apparent shift in the position of an object when viewed from two different vantage points. In astronomy, it is used to measure distances to nearby stars based on their apparent movement against distant background stars as Earth orbits the Sun.