Ceftriaxone is used to treat a wide variety of bacterial infections. Ceftriaxone belongs to a class of drugs known as cephalosporin antibiotics. It works by stopping the growth of bacteria. Ceftriaxone is not recommended for use in newborns with high blood bilirubin levels and premature infants due to the increased risk of side effects. Ask the doctor or pharmacist for details. Ceftriaxone may also be used before dental procedures in people with certain heart conditions (such as artificial heart valves) to help prevent serious infection of the heart (bacterial endocarditis).