For certain heart conditions, antibiotics are recommended about one hour before invasive medical procedures to prevent a condition called infective endocarditis, which is a potentially life-threatening bacterial infection of the inner lining or valve within the heart.