When we overcharge or overheat lithium ion batteries, the materials inside start to break down and produce bubbles of oxygen, carbon dioxide, and other gases. Pressure builds up, and the hot battery swells from a rectangle into a pillow shape. Sometimes the phone involved will operate afterwards. Other times it will die. And occasionally—kapow!