Oil is a liquid substance that is composed primarily of hydrocarbons and is hydrophobic and lipophilic. Oil can be a fossil fuel that is extracted from the ground and used as a source of energy. Oil is formed from organic matter under specific conditions over millions of years. Oil is usually flammable and surface active.