Crude oil and natural gas occur in 'pockets' under the ground. Sometimes the deposits are found under the sea bed. Like other deposits, they are extracted by drilling a hole down through the rocks into the oil or gas. For undersea deposits, the drills are mounted on a platform called a drilling rig. The oil or gas is usually pumped ashore through pipelines.