What type of rock contains oil and natural gas?

Sedimentary rocks generally contain oil and natural gas, such as sandstone, shale, and limestone.