If the lights go out in the middle of a thunderstorm, lightning is probably the culprit. Bolts can strike the tall poles that support power lines, damaging the lines and/or other equipment on the poles (fuses, transformers, relays), which interrupts the flow of electricity. Depending on the extent of the damage, the utility company may be able to make repairs in a few hours.