Solar panels produce DC electricity from sunlight. Then the inverter converts the generated electricity into AC, so that it can be used in the household.