Solar panels produce direct-current (DC) electricity when photons from the sun knock loose electronics in the silicon PV cell. Like regular household batteries, each solar cell has a positive layer and a negative layer. This creates a DC electric field, meaning the flow in the circuit moves in one direction. Since most homes are wired for AC electricity, an inverter is needed to convert a DC current into usable power.