Question: how much energy is needed to ionize air?
Answer: For long gaps in air at STP, the threshold for arc discharges is often quoted as 3.4 million volts per meter. When an atom is ionized, it will tend to collect a replacement electron which may cascade down though the available atomic energy levels, emitting light quanta characteristic of those level separations.