The stars are very far away from the Earth and it is not convenient to express such distances in kilometres. Thus, such large distances are expressed in unit known as light year.
If we say that a star is eight light years away from Earth, it means that the light from star will reach the Earth in eight years.