Endocarditis is an infection of the inner lining of the heart that often involves heart valves. It is classified based on duration, causative microorganism, type of infected valve, and source of infection. Common causes are streptococci and staphylococci bacteria entering the bloodstream from areas like the mouth or through medical procedures. Risk factors include congenital heart defects, artificial valves, rheumatic heart disease, and IV drug use. Symptoms can include fever, heart murmurs, embolic events, and immunological responses. Diagnosis involves blood cultures, echocardiography, and applying the Duke criteria. Treatment consists of long-term antibiotic therapy and may require valve surgery.