The crude oil that comes out of the ground takes a lot of refining to create the gasoline that we use in our cars. How do they refine oil to make gasoline? Here is a simple explanation of the process:
This video goes into more detail:
See also this simplified explanation of fractional distillation:
Bonus – how do oil pumps work?