In lightning, subatomic particles interact within a storm cloud to create an electric field. This electric field causes electrons to be stripped away from atoms, creating charged particles. When these charged particles build up enough energy, they are released as a lightning strike, which is a flow of electric current between the cloud and the ground.
Lightning can occur when positively and negatively charged particles within a cloud separate, creating an electrical imbalance that is discharged as a bolt of lightning. It can also occur between different clouds or between a cloud and the ground when the charge buildup is released. Additionally, lightning can occur during volcanic eruptions when ash particles in the plume become charged and generate lightning.
Charged particles from the corona, mainly electrons and protons, create the solar wind. These particles are accelerated by the Sun's magnetic field and travel outward in all directions, interacting with planets and their magnetic fields.
The key to the production of lightning is the buildup of negatively charged particles (electrons) in storm clouds. As these negative charges accumulate at the bottom of the cloud, they induce a positively charged area on the ground below. When the difference in charge becomes strong enough, a rapid flow of electrons occurs as lightning between the cloud and the ground to neutralize the charge imbalance.
The Sun is a source of charged particles that hit the Earth. These particles, known as solar wind, consist mainly of electrons and protons. When they interact with the Earth's magnetic field, they can create phenomena such as the auroras.