Solar and wind are used for electricity. There's fossil fuels used for that as well but that's mostly natural gas and a bit of coal.