Crude oil is a fossil fuel that is formed from the remains of ancient marine plants and animals. It is typically found in underground reservoirs or rock formations, such as shale or sandstone. Over millions of years, the organic matter gets buried and subjected to heat and pressure, which transforms it into crude oil.