An oil well is a term for any perforation through the Earth's surface designed to find and release both petroleum oil and gas hydrocarbons.