Light is a type of energy called an electromagnetic wave. This means that it travels through the atmosphere in these waves, which normally can only go in a straight line. It can only change direction via reflection or refraction but not of it's own accord. Light travels very rapidly, one wave could circle the globe 7.5 times in a second.