How does a Neon Tube Produce Light?

A neon tube produces light by passing electricity through the neon gas in the tube. A tube is emptied of all air and replaced with neon gas. The ends are capped with electrodes. When a current of electricity is passed from one electrode, through the neon gas, to the other electrode, the neon gas lights up.