A light-year sometimes written light year or lightyear is a unit of length used in astronomy, though it is often mistaken for a unit of time. As defined by the International Astronomical Union (IAU), a light-year is the distance that light travels in vacuum in one Julian year.