Pericarditis is an inflammation of the pericardium, which is the thin membrane surrounding the heart. This condition causes chest pain and can result from infections, autoimmune diseases, or other medical causes.