How do we get oil and gas out of the ground?

Oil and gas can get trapped in pockets underground such as where the rocks are folded into an umbrella shape.  Oil and gas can move through the porous rocks (rocks with gaps between the grains). The oil and gas move upwards from the source rock where they were formed. When they met a layer of cap [...]