A bacterial infection of the inner lining of the heart, leading to inflammation and damage to heart valves.