Hot crude oil enters near the bottom of a fractioning column.
Temperature decreases up the column.
By evaporation and condensation up the column, the oil is separated into 'fractions' with different boiling ranges, which are tapped off at different heights.