Solar panels located on your roof absorb the suns rays.
This electricity generated by the sun is switched from DC into AC by the inverter, and is now ready to power your air conditioner and other household appliances. It can even be sold back to the grid to make you money!