Calcium carbide is used in carbide lamps. Water dripping on carbide produces acetylene gas, which burns and produces light. While these lamps gave steadier and brighter light than candles, they were dangerous in coal mines, where flammable methane gas made them a serious hazard. The presence of flammable gases in coal mines led to miner safety lamps such as the Davy lamp, in which a wire gauze reduces the risk of methane ignition. Carbide lamps were still used extensively in slate, copper, and tin mines where methane is not a serious hazard. Most miners' lamps have now been replaced by electric lamps.
Carbide lamps are still used for mining in some less wealthy countries, for example in the silver mines near Potosí, Bolivia. Carbide lamps are also still used by some cavers exploring caves and other underground areas, although they are increasingly being replaced in this use by LED lights.
Carbide lamps were also used extensively as headlamps in early automobiles, motorcycles and bicycles, but have been replaced entirely by electric lamps.