The sun is the source of almost all energy on Earth. We take energy from the sun Directly using solar powers. Earth's winds are a result of the changes in temperatures caused by the sun, so wind turbines are also powered by the sun. Fossil fuels (oil, coal) come from plants and animals that died millions of years ago; plants need sunlight to grow and animals eat plants, so fossil fuels are powered by sunlight. Hydroelectric power plants are powered by water running down hill, and it is the sun which moves water back up the hill by producing rain clouds.
The only forms of energy production which could work without the sun are nuclear, and geothermal.
The only forms of energy production which could work without the sun are nuclear, and geothermal.