Why do solar cells generate DC and not AC?

Solar cells produce direct current (DC) electricity.

When sunlight strikes a solar panel, it produces DC energy.

This DC energy is then converted to AC power by the inverter.

The inverter is used to convert solar power into AC because most appliances run on AC.

Thus, solar panels produce DC electricity, but this is converted into AC electricity by an inverter before it is used in our homes and businesses.