feed crude oil into the distilling chamber
heat it until most of it is a gas
pass the gaseous mixture into a fractioning column
hot at the bottom cooler at the top
when they reach a temperature lower than its boiling point they condense
hydrocarbons with the most carbons have higher boiling points so they condense quicker