A method for contacting the battery cells of a battery module by welding, comprising inserting into a battery module holder a battery module comprising at least two battery cells configured to be connected to one another and then welding together electrical connectors of the at least two battery cells, wherein the battery module holder is disposed in a battery extinguishing container that has an opening toward a top thereof, the battery extinguishing container is connected via at least one liquid extinguishing agent line to a reservoir containing liquid extinguishing agent, the reservoir and the at least one liquid extinguishing agent line being configured to transfer the liquid extinguishing agent from the reservoir into the battery extinguishing container, prior to the welding the battery module being disposed beneath an upper edge of the opening of the battery extinguishing container as a result of being inserted into the battery module holder, whereupon the electrical connectors are welded together by way of a welding device through the opening of the battery extinguishing container.