inflammation of the inner lining of the heart (endocardium), the continuous membrane lining the four chambers and heart valves. It is often caused by microorganisms including bacteria, viruses, fungi, and rickettsiae. Left untreated, endocarditis can damage heart valves and become life-threatening.