Endocarditis is an infection of the inner lining of the heart (endocardium). It is usually caused by bacteria or fungi entering the bloodstream from another part of the body. Common symptoms include fever and heart murmur. Diagnosis involves blood tests, echocardiogram, and blood cultures. Treatment requires long-term antibiotics and may require surgery to replace damaged heart valves. Complications can include heart failure, stroke, kidney damage, and embolisms in other parts of the body.