Before getting too hot, the hydrocarbons must migrate to a reservoir rock to be extracted. Porous sandstone is a preferred type of reservoir rock. To prevent the hydrocarbons from escaping to the surface of the Earth, the reservoir rock must be covered by a cap-rock, such as clay.