Infective endocarditis (IE) is an infection of the lining of the heart or heart valves. It used to be known as bacterial endocarditis. IE can cause serious damage to the heart. For this reason, it must be treated right away. If your child has a heart problem, be sure to check with his or her doctor about how to prevent this infection.