Why does lightning zigzag
Lightning always comes down in a zigzag and branches out. The assumption that "a straight line is fastest" is wrong: air is an insulator, so electricity can't simply flow through it. A stepped leader advances about 50 m at a time, and at each step it opens a channel toward wherever the air breaks down first, which makes the zigzag.
Lightning always seems to come down in a zigzag.
Sometimes it splits into several branches.
If it took the fastest route, it should be a straight line. So why does it bend and fork like that?
Electricity takes the fastest path, so maybe something in the air gets in the way and makes it bend.
The left side of the figure shows lightning finding its way between a cloud (blue − marks along its base) and the ground (orange + marks). The slider below moves through six stages. In the first, negative charge has simply gathered under the cloud. In the second, the purple stepped leader comes down its first 50 m, and in the third it zigzags as it stops and turns again and again. In the fourth, two faint dashed branches appear that split off and dead-end, and in the fifth, as the leader nears the ground, an orange dashed streamer rises from the ground. In the sixth, the whole channel flickers bright white: that is the return stroke. The "Branches" button hides or shows the branches.
The box on the right is a close-up of air molecules. At first the gray molecules sit in neat rows, labeled "Insulator (air)". From the second stage on, the molecules in the middle three columns split into red + and blue −, and a bright current channel forms there. The blue dashed arrows on either side show the direction negative charge is pulled down; the electric field itself points the other way, from the ground toward the cloud. Turn off the "Ionization" button to hide this change and compare it with the starting picture, and the "Slow motion" button slows the glow at the leader's tip and the flicker of the channel.
Use the stage slider to follow the stepped leader through six stages (charge builds → first 50 m → bends → branches → streamer joins → return stroke), the branch button to show the forks, the ionization button to see the channel form molecule by molecule, and the speed button for slow motion.
The assumption that "a straight line is fastest" is wrong, because electricity can't simply flow through air.
Air is an insulator. It doesn't let current through. Before lightning can strike, the air first has to be ionized to make a channel for current to flow along.
When enough negative charge collects at the bottom of a cloud, the electric field grows strong and a stepped leader forms. The stepped leader moves forward in steps of about 50 m. It advances one step, pauses for an instant, and then takes the next step in whichever direction the air breaks down first from where it stands.
Air isn't uniform. Moisture, dust and stray charge differ from place to place, so the direction that breaks down next changes a little each time. With every step the leader finds a new "easiest channel", so its direction keeps bending. That is what the zigzag really is.
When the stepped leader tries several directions at once, it splits into branches. Branches that don't reach the ground stop growing, and the single channel that connects to the ground becomes the main one.
As the leader nears the ground, a positively charged streamer shoots up from the ground or a tall object to meet it. The instant the two channels join, an enormous current surges through the channel and it lights up. This is the return stroke, the flash we see as lightning.
The zigzag of lightning is the trace of a path being found. Lightning isn't taking the fastest straight line; it glows in exactly the shape the channel was built.
Static sparksThe static spark that jumps when you touch a door handle is the same kind of breakdown. Charge built up on your body briefly ionizes the air in the tiny gap between your fingertip and the handle and jumps across. The gap is so short that it breaks through in one go, with no need for steps.
Corona dischargeThe crackling corona discharge around high-voltage power lines is a weaker version of the same ionization.
Dielectric breakdownThis is exactly what electrical engineers mean by dielectric breakdown: an insulator finally giving way and opening a channel under a strong electric field. Lightning is the largest dielectric breakdown nature produces.
SafetyLightning comes down along the channel where the air breaks down first, not along the straightest or shortest line. Streamers rise easily from tall trees in open fields and from people standing alone, so lightning tends to strike there. When you hear thunder, don't shelter under a tree; go into a building or a hard-topped metal car and close the windows. The current runs around the metal body into the ground (a soft-top or plastic-roofed car does not count).