Infective endocarditis is an infection of the lining of the heart (endocardium) or the valves of the heart. The infection is most often from some type of bacteria.