Antibiotics treat bacterial endocarditis. For other types of endocarditis, you may need blood thinners or antifungal medicines. Medicines can have side effects, but this treatment is necessary to protect your life. Some people feel better within a few days of starting treatment. For others, it can take longer.