Rather than passing through an inverter, the DC may also be used to charge a battery. This is most common when a house is completely “off the grid” and relies on solar power through the day and night. The panels charge the battery so that the home can be powered even when the sun is not out. The DC leaving the battery must still pass through an inverter before being used in the home.