Petroleum is a naturally occurring, flammable liquid found in geological formations beneath the Earth's surface. It is composed of hydrocarbon compounds and is found in liquid, gaseous, or solid form. Petroleum is primarily used as a source of energy and fuels such as gasoline, diesel, and jet fuels are derived from oil through a process called fractional distillation.