A battery is a device that converts stored chemical energy into electrical energy through an electrochemical reaction. It provides a portable source of power for countless modern technologies, enabling devices to operate without direct connection to a grid.