The heart consists of several layers of a tough muscular wall, the myocardium. A thin layer of tissue, the pericardium, covers the outside, and another layer, the endocardium, lines the inside.