Components of petroleum are separated using a technique called fractional distillation, i.e. separation of a liquid mixture into fractions differing in boiling point by means of distillation, typically using a fractionating column.
Petroleum includes not only crude oil, but all liquid, gaseous and solid hydrocarbons.