-Hello There-
This Is A Great Question That You Asked!
Lightning Is Caused When The Upper Clouds Have A Positive Charge And The Lower Clouds Have A Negative Charge. So When The Negative Charge And Positive Charge Meet That Means Lightning Happens Also When This Happens, The Air Separates Into Ions And Electrons.
Have A Great Day!