No two refineries are alike. Each refinery's uniqueness is formed by geographic location, crude availability, market demand and environmental regulations it must meet.
The key function of a refinery is to separate products from crude oil and convert them using chemical reactions into components that can be blended into products that serve the market. Common to all refineries though is the initial separation of products from crude oil in distillation units.