Reservoir is the underground formation where oil and gas has accumulated. It consists of a porous rock to hold the oil or gas, and a cap rock that prevents its escape.