An oil well is a drillhole boring in Earth that is designed to bring petroleum oil hydrocarbons to the surface. Usually some natural gas is released as associated petroleum gas along with the oil. A well that is designed to produce only gas may be termed a gas well. Wells are created by drilling down into an oil or gas reserve and if necessary equipped with extraction devices such as pumpjacks. Creating the wells can be an expensive process, costing at least hundreds of thousands of dollars, and costing much more when in difficult-to-access locations, e.g., offshore. The process of modern drilling for wells first started in the 19th century but was made more efficient with advances to oil drilling rigs and technology during the 20th century.
Wells are frequently sold or exchanged between different oil and gas companies as an asset – in large part because during a drop in the price of oil and gas, a well may be unproductive, but if prices rise, even low-production wells may be economically valuable. Moreover, new methods, such as hydraulic fracturing (a process of injecting gas or liquid to force more oil or natural gas production) have made some wells viable. However, peak oil and climate policy surrounding fossil fuels have made fewer of these wells and costly techniques viable.