The main source of the carbon in organic compounds is carbon dioxide in the air. Plants use sunlight to convert carbon dioxide into organic compounds through the process of photosynthesis. Plants are therefore able to make their own organic compounds through photosynthesis, while animals feed on plants or plant products so that they gain the organic compounds that they need to survive. Another important source of carbon is fossil fuels such as coal, petroleum and natural gas. This is because fossil fuels are themselves formed from the decaying remains of dead organisms.