A battery-based inverter converts direct current (DC) from batteries into alternating current (AC) at the appropriate voltage and frequency to operate lights, appliances, or anything else that normally operates on electricity supplied by the utility grid.