In a battery, chemical energy is changed into electrical energy. A battery converts chemical energy contained within its active materials directly into electrical energy by means of an electrochemical oxidation-reduction (redox) reaction. This type of reaction involves the transfer of electrons from one material to another via an electric circuit.