When the sun’s rays hit the solar panels on your roof, it is turned into DC current electricity. The problem is that your home uses AC current electricity, which is why you need to install an inverter. The inverter converts the DC current to AC current, which can then be used in your home with the excess fed into the grid (or stored in your battery, if you have one).