The sunlight with its energy hits the silicon chips of the solar modules.
Direct current is produced with the so-called photo effect.