The sun only provided the fuel's origin the chemical alteration of this material is caused by pressure, heat and millions of years. Though fossil fuel is scientifically photosynthesis based the alteration is what makes it a fossil fuel. Hench the name fossil.