Oil, or petroleum, also consists of carbon, hydrogen, sulfur, oxygen and nitrogen, but it is in liquid form. Both oil and natural gas are found underground between folds of rocks or inside porous rocks that hold the oil.