It is a unit of distance where the distance between the objects is extremely large, like between the stars and the planets. Normal units of distance will be cumbersome to measure these distances and hence these distances are measured in terms of the distance traveled by light going by the speed of 3x 10^8 meters per second. So when we say a particular star X is 9 light yrs away from another star Y, we mean it will take light 9 years to reach X from Y. In miles, one light year comes to around 6 trillion miles thereby making the distance between X and Y equal to 54 trillion miles.

More Info: en.wikipedia.org