A parsec is a unit of distance used in astronomy to measure the vast spaces between celestial objects, equivalent to about 3.26 light-years or 31 trillion kilometers. It is defined as the distance at which one astronomical unit subtends an angle of one arcsecond, providing a practical measure for astronomical observations and calculations.