Oil drilling is the process of boring a hole into the earth to reach underground deposits of crude oil and natural gas, then extracting those resources to the surface. The world produces roughly 108 million barrels of liquid fuels per day, and every one of those barrels starts with a well drilled into rock sometimes thousands of feet below ground. The process involves far more than just punching a hole: it spans geological exploration, heavy machinery, fluid engineering, and well construction designed to keep the operation safe and productive for years.
Finding Oil Before Drilling Begins
Oil doesn’t pool in underground lakes. It sits trapped in the tiny pore spaces of rock formations, held in place by layers of impermeable rock above. Before anyone sets up a rig, geologists and geophysicists have to figure out where those formations are and whether they hold enough oil to justify the cost of drilling.
The primary tool for this is seismic surveying. Crews generate sound waves at the surface, either with vibrating trucks on land or air guns at sea, and record how those waves bounce off underground rock layers. The reflected signals reveal the shape, depth, and composition of subsurface formations. Geophysicists look for specific anomalies in the data, such as unusual changes in signal strength that suggest fluids are present in the rock. In some cases, teams also measure soil chemistry, magnetic properties, and acidity at the surface, all of which can hint at hydrocarbons below. Even with all this technology, drilling an exploratory well is the only way to confirm what’s actually down there.
How the Drill Rig Works
A drilling rig is essentially a system for spinning a long column of steel pipe with a cutting tool on the end. The most visible part is the mast (called a derrick on offshore rigs), a tall steel tower used to lift and position pipe. On land, the mast is typically assembled on the ground and then raised into place.
Hanging from the mast is the drill string: the entire column of connected pipe, tools, and the drill bit at the bottom. The bit is what actually crushes and grinds through rock. Different formations call for different bit designs, from fixed cutters tipped with industrial diamond to rolling cone bits with interlocking teeth. A motor at the surface or mounted just above the bit rotates the string, and the weight of the pipe itself pushes the bit into the rock.
As the bit advances, crews periodically stop to add new sections of pipe, extending the drill string deeper. Average well depth for crude oil in the U.S. is roughly 5,000 feet, though deepwater offshore wells can reach 12,000 feet below the sea floor, with thousands more feet of water above that.
The Role of Drilling Fluid
One of the most critical and least obvious parts of the operation is the drilling fluid, commonly called “mud.” It circulates continuously during drilling: pumped down through the hollow drill string, out through the bit, and back up to the surface through the space between the pipe and the rock wall.
The most common formulations are water mixed with finely ground bentonite clay, though oil-based muds using diesel, mineral oil, or synthetic oils are also used, especially in difficult wells. This fluid serves several purposes at once. It cools and lubricates the bit as it grinds through rock. It carries crushed rock cuttings back to the surface so the hole stays clean. It exerts pressure against the walls of the wellbore to prevent the hole from caving in. And critically, it applies enough hydrostatic pressure to keep underground fluids and gases from rushing into the well uncontrolled.
In deviated or horizontal wells, oil-based muds reduce friction between the pipe and the rock, which matters when thousands of feet of pipe are dragging sideways through a curved hole.
Casing and Cementing
You can’t leave a raw hole in the ground and expect it to behave. As drilling progresses, crews line the wellbore with steel pipe called casing, then pump cement into the gap between the casing and the surrounding rock. This serves multiple functions: it prevents the hole from collapsing, seals off different underground zones from each other, and protects freshwater aquifers near the surface from contamination by oil, gas, or saltwater from deeper formations.
Drilling and casing happen in stages. The bit drills to a certain depth, casing is lowered in, cement is pumped to lock it in place, and then a smaller bit drills through the bottom of the cemented section to continue deeper. Each successive layer of casing is narrower than the last, creating a telescoping structure. Getting the cement job right is essential. The casing needs to be centered in the hole so cement forms a uniform seal all the way around, and the drilling mud has to be fully displaced before the cement is pumped in. A poor cement job can leave channels that allow fluids to migrate between zones, compromising the well’s integrity for its entire lifespan.
At the surface, a blowout preventer is installed on top of the well. This is a heavy-duty valve system designed to seal the well instantly if underground pressure spikes unexpectedly, preventing an uncontrolled release of oil or gas.
Directional and Horizontal Drilling
Not all wells go straight down. Directional drilling allows operators to steer the wellbore along a planned path, and horizontal drilling takes this further by curving the well from vertical to nearly horizontal so it can run parallel through a thin oil-bearing layer. A conventional vertical well might pass through just 30 feet of reservoir rock, while a horizontal well can stay within that same layer for thousands of feet, exposing far more rock to the wellbore.
The curved section is drilled using a hydraulic motor mounted directly above the bit, powered by the flow of drilling fluid. A slight bend in the motor housing lets the crew steer the hole without rotating the entire drill string from the surface. Sensors near the bit continuously transmit the well’s direction, angle, and position back to operators, allowing precise placement in real time. Horizontal wells typically produce 2.5 to 7 times the oil and gas of a vertical well in the same reservoir, which is why the technique has become standard practice in tight rock formations where oil doesn’t flow easily on its own.
When the reservoir rock has very low permeability, horizontal drilling is often paired with hydraulic fracturing. After the well is drilled, fluid is pumped in at high pressure to crack the rock and create pathways for oil and gas to flow toward the wellbore.
Completing the Well
Once drilling is finished, the well goes through a completion phase that typically takes one to five weeks. The steel casing at the depth of the reservoir is perforated, creating small holes that connect the wellbore to the oil or gas trapped in the surrounding rock. If the reservoir needs stimulation, techniques like hydraulic fracturing or steam injection (for thick, heavy oil) are applied during this stage.
A set of valves called a “Christmas tree” is then installed at the wellhead. This assembly controls the flow of oil and gas out of the well throughout its productive life, which can span decades depending on the reservoir.
Onshore Versus Offshore Drilling
Onshore rigs range from large conventional setups with tall derricks, built for long-term projects in established oilfields, to compact mobile rigs mounted on trucks for shallow exploration wells. They cost less to build and operate, and weather is a manageable factor rather than a constant threat.
Offshore drilling is a different scale of engineering. Jack-up rigs work in shallow water up to about 400 feet deep, using extendable legs that push down to the sea floor and lift the platform above the waves. Semi-submersible rigs float on massive pontoons and are anchored or dynamically positioned for deeper water. Drillships are full-sized vessels with drilling equipment built into the hull, capable of operating in ultra-deep water up to 12,000 feet. Every aspect of offshore work, from crew transport to supply chains to emergency response, is more complex and more expensive. Rigs must be engineered to handle storms, currents, and the sheer pressure of thousands of feet of water above the wellbore.
Environmental Risks
Oil drilling creates a range of environmental pressures. Air pollution comes from equipment exhaust, gas flaring, and fugitive emissions of methane and volatile compounds. Water contamination can occur through surface spills, faulty well casings, or improper disposal of produced water, the salty, chemically laden water that comes up alongside oil. Drilling operations also generate noise, increase heavy truck traffic in surrounding areas, and contribute to greenhouse gas emissions.
Mitigation efforts have historically focused on single measures, such as setback distances that require wells to be a minimum distance from homes and schools. But public health researchers have increasingly called for layered approaches, combining engineering controls that capture pollutants at the source with stricter siting policies and proper decommissioning of inactive wells. Engineering controls alone may not be sufficient given the variety of emissions a single well pad can produce. Properly plugging and abandoning wells that are no longer in use is one of the most effective steps, since it eliminates the source of nearly all environmental stressors associated with a site.

