An oil refinery converts oil into petroleum for use as many things such as transportation, heating, generating electricity and for making chemicals.Â