This diagram illustrates the electrical charges within a storm cloud and shows how the transfer of charge occurs as lightning.