Endocarditis is an infection of the endocardium, which is the inner lining of your heart chambers and heart valves.
Endocarditis generally occurs when bacteria, fungi or other germs from another part of your body, such as your mouth, spread through your bloodstream and attach to damaged areas in your heart. If it's not treated quickly, endocarditis can damage or destroy your heart valves and can lead to life-threatening complications. Treatments for endocarditis include antibiotics and, in certain cases, surgery.
Since there are many ways to develop endocarditis, your doctor might not be able to pinpoint the exact cause of your condition. However, people at greatest risk of endocarditis usually have damaged heart valves, artificial heart valves or other heart defects.