Solar panels can continue to generate electricity during power outages, provided that the solar energy system is equipped with battery storage or backup power capabilities. Off-grid or hybrid solar energy systems with battery storage can provide electricity even when the grid is down.