A BESS stores electricity by charging batteries during periods of low demand or excess generation (such as solar or wind). When demand is high or generation is low, the stored energy is discharged back to the grid or used on-site.