Endocarditis is an inflammation of the inner lining of the heart that is usually caused by a bacterial infection. Common symptoms include fever, chills, heart murmurs, and muscle or joint pain. It can be diagnosed through echocardiograms, blood tests, and electrocardiograms. Treatment involves intravenous antibiotics for weeks and may require heart valve surgery to repair damage. Complications can include abnormal heart rhythms, blood clots, and embolisms that spread the infection to other organs like the kidneys, lungs, and brain.