The sun produces energy by the nuclear fusion of hydrogen into helium in its core.
31% of the sun's energy gets reflected out into space by the clouds, air molecules, and the earth;s surface. 23% gets absorbed by clouds and the earth's surface, and only 47% actually reaches the surface of the earth,