Endocarditis is an inflammation of your heart's inner lining. The most common type, bacterial endocarditis, occurs when germs, mold or other microbials enter your heart. These microbials come through your bloodstream from another part of your body, often your mouth. Bacterial endocarditis can damage your heart valves. If untreated, it can be life-threatening.