Coal, petroleum, and natural gas are used to produce energy. Coal plays a vital role in electricity. Petroleum is used to create energy sources in making plastics, fuel for automobiles, and source of heat. Natural gas is composed of methane which is used for cooking and heating.