Lightning is a flow of electricity. Many small pieces of ice (frozen raindrops) bump into each other as they move around inside a thundercloud way up in the sky. All of these collisions make a charge of electricity. After a while, electrical charges fill up the whole cloud.