How were oil fields formed?

Crude oil is a liquid mineral which is primarily a mixture of natural liquid, gaseous and solid hydrocarbons. In addition, it contains small admixtures of oxygen, nitrogen, sulfur and inorganic pollutants. Its properties are of great importance