Pericarditis is an inflammation or infection of the pericardium, the thin sac (membrane) that surrounds the heart. There is a small amount of fluid between the inner and outer layers of the pericardium.

When the pericardium becomes inflamed, the amount of fluid between its two layers increases, compressing the heart and interfering with the heart's ability to function properly.