Good Morning!
The oil is withdrawn from the subsoil through the extraction process. The first step is the detection of the reserves through equipment of probes and other detectors operated by satellite. This first stage is known as prospecting. Then the drilling begins, a process by which the soil layer that covers the reserve is violated in order to give access to the extraction equipment. This is then the last phase. At that time the oil pipelines are installed and the internal pressure of the earth plays the important role of "expelling" the oil from the soil, emanating it to the surface.
Hugs!