A battery is a device that uses chemical reactions to provide power for electrical devices. It consists of positive and negative electrodes and uses chemical reactions at the electrodes to generate electricity. The main types of batteries are lead-acid batteries, commonly used in vehicles, and lithium-ion batteries, which power many portable electronic devices. Batteries can explode or leak if mishandled, as they contain corrosive and toxic chemicals like lead and mercury. Proper safety procedures must be followed when working with batteries to avoid hazards.