The membrane that encloses the pericardial cavity, containing the vertebrate heart. The pericardium holds the heart in position while allowing it to relax and contract. It consists of two main parts: a tough outer fibrous layer (fibrous pericardium) and the more delicate serous pericardium, which consists of a double layer of serous membrane, the inner layer being in close contact with the heart.