If sources of static electricity create sparks close to batteries, the battery may explode. Additionally, when batteries are charging, naked flames, welding sparks, or any other sparks close to batteries could result in a fire or explosion. Hydrogen gases evolved as batteries are charging.