A battery transforms chemical energy into electrical energy. When a battery is connected to a circuit, a chemical reaction occurs within the battery, which releases electrons. These electrons flow through the circuit, providing electrical energy to power devices.
In simple terms, when you use a battery to power something, the stored energy that was created through chemical reactions is converted into electricity, which can then do work, such as lighting a bulb or powering a toy.